Hi all,
The ON/OFF button of the XU-ADR D1 button 1.01.mq4 indicator found here attach/file/3450277 was conflicting with other indicators with on/off buttons so I created my own ON/OFF button system so I'm sharing it with everyone so coders can use this instead. I took pieces of code from banzai and other coders to make this. This ON/OFF button system doesn't use GlobalVariables with the GlobalVariableSet and GlobalVariableGet functions that write to your disks which is not the most efficient thing to do especially if you use frequent iCustom calls to the indicator. If you use this button system with indicators that draw buffer data then just look for the comments // Uncomment the line below for indicators that draw buffer data and uncomment those lines. I also added a showPrevHiLolines option to the ADR indicator.
So here is my version below of the XU-ADR D1 button 1.01 indicator with my button system called UT_XU-ADR D1_1.01_BT.
Edited:
I removed the UT_XU-ADR D1_1.01_BT.mq4 attachment from this 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. For details on an update to the UT_XU-ADR D1_1.01_BT indicator and to get the Jurik Bands BT indicator, see my message at: viewtopic.php?p=1295517679#p1295517679
Re: XU-ADR D1 with New Button System
3062Thanks! Good work!global wrote: Wed Jul 05, 2023 12:53 am So here is my version below of the XU-ADR D1 button 1.01 indicator with my button system called UT_XU-ADR D1_1.01_BT.
I think the colours are "hard wired" in this indicator. If you change them via inputs they either don't work or cause problems.
So it might be an improvement to really link them to inputs....
As for the Fibonacci expansion: who came up with 127 and why?
Re: Indicators with ON/OFF buttons
3063Hello all,quangvuig wrote: Fri Jun 23, 2023 7:59 pm I used this newspaper and found it quite good, but HH LH covered the candle, hoping the engineers would edit it and leave it blank, so as not to coincide with the candle. Hope the engineers help, or show me which code to fix, thanks
This is my first post in this wonderful community

extern double Labeldistance = 1.0;
extern int ATRPeriod = 20;
Test it.
Re: XU-ADR D1 with New Button System
3064global wrote: Wed Jul 05, 2023 12:53 am Hi all,
The ON/OFF button of the XU-ADR D1 button 1.01.mq4 indicator found here attach/file/3450277 was conflicting with other indicators with on/off buttons so I created my own ON/OFF button system so I'm sharing it with everyone so coders can use this instead. I took pieces of code from banzai and other coders to make this. This ON/OFF button system doesn't use GlobalVariables with the GlobalVariableSet and GlobalVariableGet functions that write to your disks which is not the most efficient thing to do especially if you use frequent iCustom calls to the indicator. If you use this button system with indicators that draw buffer data then just look for the comments // Uncomment the line below for indicators that draw buffer data and uncomment those lines. I also added a showPrevHiLolines option to the ADR indicator.
So here is my version below of the XU-ADR D1 button 1.01 indicator with my button system called UT_XU-ADR D1_1.01_BT.
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:
Re: XU-ADR D1 with New Button System
3065Thanks for the encouragement, I'm currently updating the indicator. See my message at viewtopic.php?p=1295517679#p1295517679 for details. I will consider adding inputs to change the "hard wired" colours. Thanks for the suggestion. I don't know who came up with the 127% expansion.josi wrote: Wed Jul 05, 2023 3:43 pm Thanks! Good work!
I think the colours are "hard wired" in this indicator. If you change them via inputs they either don't work or cause problems.
So it might be an improvement to really link them to inputs....
As for the Fibonacci expansion: who came up with 127 and why?
Re: UT_XU-ADR D1_1.01_BT2 New Button System
3066Here 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;
- These users thanked the author global for the post (total 10):
- mrtools, RodrigoRT7, Chickenspicy, kvak, Skyold, mr12323, Papybillou, excellence, Jimmy, chris006
Re: UT_XU-ADR D1_1.01_BT2 New Button System
3067its pretty much just a atr multiplier from the daily open to give you an idea of the typical range
almost the same thing as pivots
- These users thanked the author Chickenspicy for the post:
- global
0 + 0 = 0
Infinite / Infinite = 1
1 way to Heaven & it matters
people only serve God or money coincidence?
Infinite / Infinite = 1
1 way to Heaven & it matters
people only serve God or money coincidence?
Re: UT_XU-ADR D1_1.01_BT2 New Button System
3068Ok, that makes sense. Thanks. I was wondering if there was some special significance to the multiplier they used or if it was just and arbitrary multiplier.Chickenspicy wrote: Thu Jul 06, 2023 10:35 am its pretty much just a atr multiplier from the daily open to give you an idea of the typical range
almost the same thing as pivots
- These users thanked the author global for the post:
- Chickenspicy
Re: Indicators with ON/OFF buttons
3069Hi there Forex Station Crew,
I'm after a bit of help please. Add Button function to the supplied indicator.
And
If possible the Dots to change colour as they change from Bull to Bear.
Many Thanks,
Regards,
I'm after a bit of help please. Add Button function to the supplied indicator.
And
If possible the Dots to change colour as they change from Bull to Bear.
Many Thanks,
Regards,
Re: Indicators with ON/OFF buttons
3070Dear Masters,
I wish I could have Button added to this indicator.
I like it because of the extension of the rectangle.
Thank you for your assistance
I wish I could have Button added to this indicator.
I like it because of the extension of the rectangle.
Thank you for your assistance