Re: Indicators with ON/OFF buttons

1881
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.
Attachments
These users thanked the author kvak for the post:
Merylfx


Re: Indicators with ON/OFF buttons

1885
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);
These users thanked the author kvak for the post (total 5):
PumbaPLS, chris006, Mrs.Watanabe, Thangarasu, Jedidiah


Re: Indicators with ON/OFF buttons

1887
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!
You cannot solve a problem from the same consciousness that created it. You must learn to see the world anew

Re: Indicators with ON/OFF buttons

1889
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
These users thanked the author kvak for the post (total 6):
Wole, rudiarius, Jimmy, alexm, SijjiN, chojnak


Who is online

Users browsing this forum: Abdi, adriano.ecker, Ahrefs [Bot], bbookgenius, Google [Bot], Jimmy, Majestic-12 [Bot], muhammadFarooq2k20, TECHHDATE07, Yandex [Bot] and 123 guests