To check the trend you need different time frames.
I have created a test file, but it does not work … No long order will be opened.
In the strategy tester “M5” is chosen.
I use different MA`s in H1 and M5.
Go long (H1): SMA 9 SMA100 crosses up
M5: Close 1> Upper Bollinger Band
// go long
IF (((Market Position () is Flat)
And ((SMA (PERIOD_H1, 9, Close)  Crosses Above SMA (PERIOD_H1, 100, Close) )
And (Close (PERIOD_M5) > BollingerBand_Upper (PERIOD_M5, 20, 2, 0, Close) ))))
Buy 0.1 lots at Market
Magic number = 1000;
Why does not this work? How can I use multiple time frames?
Best regards and thanks for a solution
Hello, here´s my file…
Attachments:You must be logged in to view attached files.
You must be logged in to reply to this topic.