Multi Timeframe Indicators - page 313

wlfx
8
wlfx  

DSS Bressert

Can someone make MTF for this indicator ?

Robert
418
Robert  

Adding MTF

wlfx:
Can someone make MTF for this indicator ?

Hi WLFX,

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:

HighRange = High;

LowRange = Low;

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,

Robert

wlfx
8
wlfx  
cosmiclifeform:
Hi WLFX,

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:

HighRange = High;

LowRange = Low;

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,

Robert

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"

klondyke
23
klondyke  
Files:
qqe_spec.mq4 4 kb
Robert
418
Robert  

MTF - OK in Strategy Tester - Zero Divide On Chart

wlfx:
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"

Hi Wlfx,

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,

Robert

mike78
86
mike78  

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.

mike

https://www.mql5.com/en/forum/173574

mike78
86
mike78  

forgot to load up the ind.

thank you.

William Snyder
9493
William Snyder  
mike78:
forgot to load up the ind. thank you.

You need TMAcentered you can download it from the link you provided above.

mike78
86
mike78  

cheers T

thanks Tools... that solved it.

mike

lumber
7
lumber  

Does anyone have a MTF of the sto_StepMA_Stoch_v1.

Thank you in advance.