JNS247 wrote: Tue Jul 14, 2020 12:50 pm
Hello Banzai
I have managed to create the button, no errors on the compile, however, I'm missing the control of the supertrend line, I can switch the state on the button but it does not control anything.
Button code copied from
day_seperator_2_2 button
delineated by //************
Would you be able to assist?
I'll keep trying I have managed to a a button before just got to find the right spot for the code :-)
Thanks in advance.
SuperTrend nrp new format (mtf + arrows + alerts).mq4
You see, this indicator use the OnCalculate function.
All of our templates use the start() function.
Now the only template that use the OnCalculate function is mrtools template
"ma - with button.mq4"
which is at
viewtopic.php?p=1295414482#p1295414482
Attached is a working indicator based on mrtools template.
It's not over yet.
When we switch to mtf, this indicator doesn't work.
the state of the button such as on or off
doesn't pass along to the mtf
-------------------------------------------------------------
There's more.
Assuming you can make the mtf function to work,
the next step is to make 8 mtf buttons like these:
[M1 Supertrend] [M5 Supertrend] [M15 Supertrend] [M30 Supertrend] [H1 Supertrend] [H4 Supertrend] [D1 Supertrend] [W1 Supertrend] [MN Supertrend]
Then, we will another issue.
The UniqueButtonID doesn't pass along to the right button.
All coders are busy so will take a while to get the OnCalculate template.