Page 166 of 339

Re: Indicators with ON/OFF buttons

Posted: Sun Feb 06, 2022 11:27 pm
by optionhk
chris006 wrote: Sun Feb 06, 2022 5:57 am Hi optionhk,

Using the 3MA indicator here:
viewtopic.php?p=1295455485#p1295455485

and take a look at the picture, I am using 9,36,144 moving averages, which are equivalent of M15: 9, H1: 9, H4: 9, isn't this what you are looking for? (of course it's for 3 timeframes as per your picture, not 4 timeframes)

If you want to superimpose on the chart H1 and / or H4 candles you can do so with the custom candles indicator.



Image
Thank you very much. Instead of 9, can I select 2, 8, 32 ?

Re: Indicators with ON/OFF buttons

Posted: Sun Feb 06, 2022 11:39 pm
by chris006
Sure, you can put whatever period value you want in the Fast ma, Medium ma, Slow ma input (and also choose ma type independently from one another). Just play with the indicator settings.
optionhk wrote: Sun Feb 06, 2022 11:27 pm Thank you very much. Instead of 9, can I select 2, 8, 32 ?

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 12:48 am
by sal
dear kvak/tools
can you please add button for this indicator , someone posted newly!!
also please add bb band as well without impact the existing features..

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 3:09 am
by kvak
sal wrote: Mon Feb 07, 2022 12:48 am dear kvak/tools
can you please add button for this indicator , someone posted newly!!
also please add bb band as well without impact the existing features..
Try

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 3:13 am
by kvak
jsw_nz wrote: Sun Feb 06, 2022 11:03 pm Yes... The first subwindow below the main window - this way the buttons do not block any candles as they are being redrawn guessing I could have a thin strip - similar to the way some use the Symbol Changer v5 options - not sure what the code might be any pointers appreciated...
This is the HA from post above, with this ability...when you attach, automatically is add to first subwindow.

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 4:17 am
by kvak
fuseb wrote: Sun Feb 06, 2022 6:35 pm Thank you so much for this Kvak! Great work as always! I was wondering if it would be possible to add the "shift" parameter for each of the 5 MAs?
I thing it is possible, but have bug, when I trying add shift for every average.
this is version with shift added but for all MAs....

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 6:38 am
by kvak
sal wrote: Mon Feb 07, 2022 12:48 am dear kvak/tools
can you please add button for this indicator , someone posted newly!!
also please add bb band as well without impact the existing features..
Added bands, you means something like this?

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 6:51 am
by fuseb
kvak wrote: Mon Feb 07, 2022 4:17 am this is version with shift added but for all MAs....
Thank you for trying. Part of the strategy I'm working on requires separate shift for each MA, unfortunately. Anyway, hope you have a great day, mate.

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 2:18 pm
by sal
for me , it is not displayed on screen anything.. please have a look!!

Re: Indicators with ON/OFF buttons

Posted: Mon Feb 07, 2022 4:40 pm
by jsw_nz
kvak wrote: Mon Feb 07, 2022 3:13 am This is the HA from post above, with this ability...when you attach, automatically is add to first subwindow.
Thanks Kvak - code worked like a charm - it goes something like this:

Code: Select all

//variable to locate button in first subwindow
extern int    btn_Subwindow  = 1;

//instantiate variable 
ObjectCreate (ChartID(),buttonID,OBJ_BUTTON,btn_Subwindow,0,0);

many thanks mate