Page 3 of 338

Re: Indicators with ON/OFF buttons

Posted: Fri Jun 26, 2020 8:15 pm
by jjventural
Banzai wrote: Thu Jun 25, 2020 4:24 pm with a click of a button, you can turn on or off the Heiken Ashi smoothed.

I made this. Thanks to jeanlouie codes and templates @ forexfactory. Oh yeah :thumbup:
Hi Banzai, It's possible to change the button to keep the heiken ashi deleted when you change time frame and only restored when you press the button????
Thank you....

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 4:18 am
by Banzai
jjventural wrote: Fri Jun 26, 2020 8:15 pm Hi Banzai, It's possible to change the button to keep the heiken ashi deleted when you change time frame and only restored when you press the button????
Thank you....
lol, that's a very advance level.
I'm only a beginner.
Will look into that when I have more experiences. :think:

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 6:08 am
by Skyold
Banzai wrote: Sat Jun 27, 2020 4:18 am

lol, that's a very advance level.
I'm only a beginner.
Will look into that when I have more experiences. :think:
Hi Banzai,
what is with the Indi WPR on chart? it is possible?
Thanks

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 6:18 am
by Banzai
Weekly and Monthly Fibo. On or off.
------------------------------------------------------------------------------
edit, Sunday, July 26th, 2020, 7:34PM, PST
Please download version 1.01 @
viewtopic.php?p=1295414247#p1295414247
Thank you.
------------------------------------------------------------------------------

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 6:21 am
by Banzai
Skyold wrote: Sat Jun 27, 2020 6:08 am Hi Banzai,
what is with the Indi WPR on chart? it is possible?
Thanks
Everything works fine except the mtf arrows.
In the worst case scenario, we will ask jeanlouie to do it.

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 9:01 am
by Banzai
Skyold wrote: Sat Jun 27, 2020 6:08 am Hi Banzai,
what is with the Indi WPR on chart? it is possible?
Thanks
OK. So far so good.
I checked the mtf arrows and they're fine now.
-----------------------------------------------------
Fun facts:
I copy the colors of WPR lines from Tankk, a Russian coder. Those are his favorite colors. I see he uses them all the time.
and then I copy the colors of the band from the TMA bands.

:lol:

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 12:59 pm
by Lumios
Banzai, this is such a great idea. Trying to learn and study this, is there a resource you can point me in the direction of?

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 1:21 pm
by Banzai
Lumios wrote: Sat Jun 27, 2020 12:59 pm Banzai, this is such a great idea. Trying to learn and study this, is there a resource you can point me in the direction of?
Thanks to jeanlouie codes/templates, I was able to copy and paste.
That's why I always post the original indicator and the new button indicator so you can compare the codes.

I started out by comparing the codes of "Swing_ZZ.mq4" and "Swing_ZZ_w_toggle.mq4"
viewtopic.php?p=1295413353#p1295413353
---------------------------------------------------------------------------
The idea is when you click the OFF button,
change all colors to clrNONE
Since there's no colors, we don't see anything on the chart. That's the trick.

Code: Select all

      if(ObjectGetInteger(0,"Swing_ZZ_tog_btn",OBJPROP_STATE)){
         ObjectSetString(0,"Swing_ZZ_tog_btn",OBJPROP_TEXT,btn_pressed);
         SetIndexStyle(2,DRAW_ARROW,STYLE_SOLID,1,clrNONE);
         SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,1,clrNONE);
         SetIndexStyle(0,DRAW_SECTION,STYLE_SOLID,1,clrNONE);
---------------------------------------------------------------------------
when you click the ON button,
change all colors back to the original colors.
---------------------------------------------------------------------------
jeanlouie code is easier to understand than xard777 code
xard777 code is at: viewtopic.php?p=1295413346#p1295413346

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 4:15 pm
by Ogee
Yes, I need the source code to modify.
jeanlouie code/template is easy to read.
I was able to copy and paste the code and apply to other indi.

/quote]
Great work Banzai and thank you, any chance you might do the button magic on this excellent little auto pivots indy?

Re: Indicators with ON/OFF buttons

Posted: Sat Jun 27, 2020 5:52 pm
by Skyold
Banzai wrote: Sat Jun 27, 2020 9:01 am

OK. So far so good.
I checked the mtf arrows and they're fine now.
-----------------------------------------------------
Fun facts:
I copy the colors of WPR lines from Tankk, a Russian coder. Those are his favorite colors. I see he uses them all the time.
and then I copy the colors of the band from the TMA bands.

:lol:
Hi Banzai,
it's great what you did there.
Thank you very much for your effort.
From now on there is only a clear chart with BANZAI BUTTONS :clap: :)