Page 22 of 338

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 5:45 am
by Lumios
Hey Banzai,

I figured out why the buttons were replacing each other, visibility ID had to be unique. I've updated most of the indis to fix the issue. You are teaching me sir!! Try to help you out!!
-----------------------
Banzai wrote: Sun Jul 12, 2020 3:52 am

This uni_cross.mq4 needs two more files in order to work.
Snake.mq4 and T3_clean.mq4

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 5:58 am
by Banzai
Lumios wrote: Sun Jul 12, 2020 5:45 am Hey Banzai,

I figured out why the buttons were replacing each other, visibility ID had to be unique. I've updated most of the indis to fix the issue. You are teaching me sir!! Try to help you out!!
Yikes. I forgot to test with other buttons.
I blame it on the summer heat.
OK, I'll be more careful from now on.
Thank you very much.
-------------------------------------------------------------------
Lumios wrote: Fri Jul 03, 2020 1:52 pm I think there is a bug on the custom candles that recolors all the fonts when you push button on.
I did remember to test to see if the background color of
@@@Custom Candles - MTF 2.1 button.mq4
interfere with other indicator background color

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 6:28 am
by Banzai
Oh OK. I see what I did.
int init()
{
IndicatorName = GenerateIndicatorName("Enter_a_different_name"); //don't forget to change name here
IndicatorObjPrefix = "__" + IndicatorName + "__";
IndicatorShortName(IndicatorName);
IndicatorDigits(Digits);
// Enter another different name below
visibility.Init("show_hide_Enter_another_different_name", IndicatorName, btn_text, button_x, button_y);
In the template, I reminded myself to change the name here and there.
And then I forgot.
lol

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 6:56 am
by Lumios
Oh man 😂😂😂
Banzai wrote: Sun Jul 12, 2020 6:28 am Oh OK. I see what I did.


In the template, I reminded myself to change the name here and there.
And then I forgot.
lol

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 10:21 am
by Banzai
Banzai wrote: Sun Jul 12, 2020 3:52 am

This uni_cross.mq4 needs two more files in order to work.
Snake.mq4 and T3_clean.mq4
I was able to make 3 buttons. Snake button, T3_clean button, and uni_cross button.
Please put these 5 indicators in the same folder in order to work.
"uni_cross button.mq4" file will call and read some data from "Snake.mq4" and "T3_clean.mq4". That's why.

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 2:36 pm
by Banzai
Based on the article How To Teach A Turtle To Trade, A Spreadsheet For A
Trend-Following Approach by Ron McEwan, February 2020 issue of S&C magazine.

with on or off button

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 3:45 pm
by JNS247
Attached Chart_Time changer combined (1 indicator)

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 4:14 pm
by pax
Many thanks to the contributors for all of the buttons.
If possible please make a button for this Guppy MAs indie.
Thanks again!!

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 4:52 pm
by Banzai
pax wrote: Sun Jul 12, 2020 4:14 pm Many thanks to the contributors for all of the buttons.
If possible please make a button for this Guppy MAs indie.
Thanks again!!
on or off button
--------------------------------
edit 6/12/22:

Please use a newer version at:
viewtopic.php?p=1295480132#p1295480132

Thank you.

Re: Indicators with ON/OFF buttons

Posted: Sun Jul 12, 2020 4:54 pm
by Banzai
josi wrote: Sat Jul 11, 2020 4:50 pm Xard is - at the moment - experimenting with a new (cycle) channel that looks very interesting.
Maybe you can come in early and integrate the on/off-functionality (you have so quickly become famous for) for the new setup before it is released. Just an idea....

see: viewtopic.php?p=1295414517#p1295414517
Yes, yes.
I'm starting to use his trading strategy.
He has more trading experiences than I am.