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!

#84085

Gianluca it’s the other way round… all TF’s must be multiple of the main one, which is the lowest one from where the strategy is launched and which must be the current TF on the chart. In your case your default TF CANNOT be 4h! Your code has nothing to do with this issue.

You cannot launch or backtest your MTF strategy from a 4-hour TF if you are using lower TF’s.

If you want to use 4h and 1h, or even 1min, you must launch your strategy from the lowest one!

And you cannot use 4h, 1h and 7mins together, because 4h (240 mins) and 1h (60 mins) are not multiple of 7 minutes! You should use 245/238mins, 63/56mins and 7mins.