Can someone make MTF for this indicator ?
First my disclaimer. I'm still only a novice coder and I looked inside the indicator and I do not quite understand what the code is doing.
In particular, it references EMA but I see nowhere that it gets any MA values. Same with Stoch. It uses the Stoch period to get Highs and Lows but does not seems to actually get Stoch values (main and signal). So I left the indicator as is, and I will hope that the following helps you with what you requested.
I found only one place that appears to get values based on the timeframe.
HighRange = High;
LowRange = Low;
To make it MTF - Add the following at the top:
extern int TimeFrame=0
Then replace the "0" in the above lines with TimeFrame:
Add this to your indicator and recompile before you use it.
This should work to make it MTF, but I am not sure about the "Alert" function and how changing this MTF affects the alerts.
Hopefully a more advanced coder can take a look at this. I'd like to understand the code better myself.
Hope this helps you,
Hi Robert. apreciate your reply. But i am afraid i do not have any coding skills, though i asked for it here. Maybe more experienced coder can have a look on it. Thank you.
Had done what you said, but it do not work. And i am getting message in experts tab - "M1: zero divide"
MTF - OK in Strategy Tester - Zero Divide On Chart
I ran the code and I also got the Zero Divide error.
I added comments on screen to see the values. For some reason it seems to work in Strategy Tester mode, but placing it on the actual chart still gives the Zero Divide error with a different TF.
Attached are my Strategy Tester results. You can see that it is showing the different TimeFrames (60 30 15), so it's working...but not on charts?
I think we are close, but the code still confuses me as to what it is doing.
Hopefully someone with better coding skills will take this challenge to help you.
Good luck with this indicator,
PLEASE HELP: ATR_Channels_VarTFs_mtf_TMA.mq4
Does anyone know if this indicator (ATR_Channels_VarTFs_mtf_TMA.mq4) needs a tpl. file? It wont show up on my charts. I found it on the link below.
Thank you for your help.
forgot to load up the ind.
You need TMAcentered you can download it from the link you provided above.
thanks Tools... that solved it.
Does anyone have a MTF of the sto_StepMA_Stoch_v1.
Thank you in advance.