Page 189 of 339

Re: Indicators with ON/OFF buttons

Posted: Tue Mar 22, 2022 5:05 am
by kvak
Merylfx wrote: Tue Mar 22, 2022 4:21 am Thanks kvak for your feedback. I tried the indicator but unfortunately the arrows do not display correctly.
See the attached image.
Thanks
Image
You mean the arrows disappeared? Yes it is and you must refresh chart manually for show it back......For objects buttons does not work well. Or I can do it like this, the text and arrows remain.

Re: Indicators with ON/OFF buttons

Posted: Tue Mar 22, 2022 6:42 am
by Merylfx
kvak wrote: Tue Mar 22, 2022 5:05 am You mean the arrows disappeared? Yes it is and you must refresh chart manually for show it back......For objects buttons does not work well. Or I can do it like this, the text and arrows remain.
Image
Ok I understand better now kvak. I will proceed as you say.
Thanks for your feedback.

Re: Indicators with ON/OFF buttons

Posted: Wed Mar 23, 2022 8:40 am
by PumbaPLS
Could the option to put the button in the subwindow be added?

Thanks for your hard work.

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 3:07 am
by FT_Trading
Hi,
Could someone add an ON/OFF button to this 5 EMAs indicator please?
Thanks in advance

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 3:45 am
by kvak
PumbaPLS wrote: Wed Mar 23, 2022 8:40 am Could the option to put the button in the subwindow be added?

Thanks for your hard work.
In some BT template is easy...
Where start settings for button add this code...

Code: Select all

extern int                btn_Subwindow = 0;
And this line (133 in original file) change from this

Code: Select all

 ObjectCreate    (0,buttonID,OBJ_BUTTON,0,0,0);
to this

Code: Select all

 ObjectCreate (0,buttonID,OBJ_BUTTON,btn_Subwindow,0,0);

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 3:56 am
by Wole
This life is beautiful because God made us to be creative. For some of us who like Anchored VWAP and want to use it for analysis, adding a button to it can be fun and useful.
Kindly add the button to the attached indicator.
Thank you.

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 3:57 am
by PumbaPLS
kvak wrote: Thu Mar 24, 2022 3:45 am In some BT template is easy...
Where start settings for button add this code...

Code: Select all

extern int                btn_Subwindow = 0;
And this line (133 in original file) change from this

Code: Select all

 ObjectCreate    (0,buttonID,OBJ_BUTTON,0,0,0);
to this

Code: Select all

 ObjectCreate (0,buttonID,OBJ_BUTTON,btn_Subwindow,0,0);
Image
weird! I have done exactly that and then the candles didnt work anymore and when I pressed the button it just said "Candle timeframe 1440" I will test it out myself one more time, still thanks!

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 3:59 am
by kvak
FT_Trading wrote: Thu Mar 24, 2022 3:07 am Hi,
Could someone add an ON/OFF button to this 5 EMAs indicator please?
Thanks in advance
Try...
Added drop down box for average options and prices too...

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 4:09 am
by kvak
Wole wrote: Thu Mar 24, 2022 3:56 am This life is beautiful because God made us to be creative. For some of us who like Anchored VWAP and want to use it for analysis, adding a button to it can be fun and useful.
Kindly add the button to the attached indicator.
Thank you.
Image
Try

Re: Indicators with ON/OFF buttons

Posted: Thu Mar 24, 2022 4:17 am
by Wole
kvak wrote: Thu Mar 24, 2022 4:09 am Try
Image
This is awesome.
Thank you.