Hello i tried to code a multitimeframe system, but it keeps giving me this error.
Does anyone hve the solution for me!
Thanks 600
It says:
All time units used in your code should be a multiple of the time unit used in the chart to which your strategy is applied.
That’s right.
MTF rules:
- the Timeframe on your chart (named the DEFAULT Timeframe) MUST be <= to the lowest one used in your code
- ALL greater Timeframes used in your code MUST be multiple of the default TF
If you use a 4-hour TF and a 30-minute TF, you can set the default TF (the one on your chart) to 1, 2, 3, 5, 6, 10, 15, 30 minutes, but NOT 4, 7, 20 minutes since both 4h (which is 240 minutes) and 30 minutes are NOT multiple of 4!