Here is my new modified UT_XU-ADR D1_1.01_BT2.mq4. I added inputs that will now allow you to change all the "hard coded" colors. I also included comments within the code explaining how you can use the Modified Forex-Station button template sections within other indicators that draw buffer data you want to access by iCustom calls.global wrote: Thu Jul 06, 2023 5:37 am I removed the UT_XU-ADR D1_1.01_BT.mq4 attachment from my quoted message above because I just discovered the Jurik Bands BT indicator on my hard drive from Forex-station.com that already provides a much better on/off button system than I did and it also doesn't use GlobalVariables. I got that indicator from BeatlemaniaSA a year ago. You will find that indicator here: viewtopic.php?p=1295482002#p1295482002
Nevertheless, I will upload a new modified version of UT_XU-ADR D1_1.01_BT.mq4 that uses the same button system from the Jurik Bankd BT indicator with a little modification so that same non-GlobalVariables button system can be used with iCustom calls to buffer indicators without drawing buttons and other objects to the chart from which the iCustom calls are made. I'm still working on it so as soon as I'm finished I will upload it.
In the meantime, here is the Jurik Bankd BT indicator:
download/file.php?id=3432931&mode=view
Within the "Open Postion level Settings", the showLevels option shows the following 4 levels, LevelOpenUp1, LevelOpenUp2, LevelOpenDn1, and LevelOpenDn2. Those levels are calculated by the code:
Code: Select all
double levelup1=OpenToday*1.0057,levelup2=levelup1*1.0057;
double leveldn1=OpenToday/1.0057,leveldn2=leveldn1/1.0057;