I am doing alot of multiple timeframe indicators, but when I try to use them in a strategy PRT (V11) always gives me an error message.
Does anyone know what the problem is?
See attached pictures of simple test.
Erkiman – for future reference when posting code please use the ‘Insert PRT Code’ button rather than posting screen shots. Other forum members cannot be expected to re-type all your code to test it for you! Code that has been inserted however can be copied and pasted by everyone.
Sorry about that.
Code now included.
Indicator (MTF Test):
TimeFrame (5 minutes)
M5MA8 = Average[8]
TimeFrame (1 minutes)
M1MA8 = Average[8]
Return M5MA8, M1MA8
ProOrder:
DEFPARAM CUMULATEORDERS = False
myMTFTest, myMTFTest2 = CALL "MTF Test"(close)
If myMTFTest Crosses Over myMTFTest2 Then
Buy 1 Contract At Market
EndIf
SET STOP %LOSS 1
SET TARGET %PROFIT 1
What TF did you call it from?
I am still not aible to call any of my MTF indicators in a strategy.
Has anyone else experience this problem?
Please send a technical report on your own and with this topic link in the message field (with explanation too), I will do the same and get an answer.
There is indeed a problem when calling MTF indicators. The best way to deal with that is to use TIMEFRAME into the strategy and CALL indicators that use only a single timeframe (understand without the timeframe instruction).