Problem using MTF indicator in strategy
Forums › ProRealTime English forum › ProOrder support › Problem using MTF indicator in strategy
- This topic has 7 replies, 4 voices, and was last updated 3 years ago by Nicolas.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
12/21/2020 at 3:01 PM #15474112/21/2020 at 3:40 PM #154746
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.
12/22/2020 at 8:54 AM #154846Sorry about that.
Code now included.
Indicator (MTF Test):
Indicator1234567TimeFrame (5 minutes)M5MA8 = Average[8]TimeFrame (1 minutes)M1MA8 = Average[8]Return M5MA8, M1MA8ProOrder:
12345678910DEFPARAM CUMULATEORDERS = FalsemyMTFTest, myMTFTest2 = CALL "MTF Test"(close)If myMTFTest Crosses Over myMTFTest2 ThenBuy 1 Contract At MarketEndIfSET STOP %LOSS 1SET TARGET %PROFIT 112/22/2020 at 9:22 AM #154849What TF did you call it from?
12/22/2020 at 9:33 AM #15485112/28/2020 at 9:43 PM #15548701/04/2021 at 1:22 PM #15622201/04/2021 at 4:13 PM #156285There 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).
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: