Forums › ProRealTime English forum › ProOrder support › [beta-testing] multi timeframe support for automatic trading, ideas are welcome! › Reply To: [beta-testing] multi timeframe support for automatic trading, ideas are welcome!
08/24/2018 at 10:54 PM
#79030
Hello to everybody!
I have two questions that I would like to clarify; maybe they have already been asked, but I cannot find them.
In a multi timeframe scenario, something like that
1 2 3 |
if ((not onmarket) and (onmarket<strong>[1]</strong>) then // do something if the strategy has just exited from the market endif |
[1] what does it refer to? to the default TF?
And in something like
1 2 3 4 5 6 7 8 9 10 11 |
timeframe (5 minutes, updateonclose) MA20 = average [20] bulltrend = summation [3] (MA20> MA20 [1]) = 3 // "default" timeframe (the timeframe you will launch the strategy on) timeframe (default) ... if (MA20 <MA20<strong>[1]</strong>) then // do something if MA20 is decreasing endif |
[1] is referred to the value of MA20 in the TF bar 5 minutes before?
Thanks,
Lorenzo