Variables cannot be created/modified in different TF’s. They can only be read anywhere.
At lines 59 and 15 you are creating/modifying a variable already used elsewhere in a different TF.
You should:
- move line 56 to a new line between 9 and 10
- insert a new line between line 2 with
timeframe(default)
the same TF can be used multiple times inside a strategy.
I think this should solve most of your issues, since your 4-hour TF needs only line 9.
I don’t know if you tried what I suggested, I can’t see any other line that should be under the 4h TF. The only other indicator, the FRACTA LINE, had already been written outside that 4h TF so it is assumed to be the default TF (I suggest that you ALWAYS write the correct TF, even if it is not strictly required at the beginning, being assumed).
If my above assumptions are incorrect, then you will hace to use different variable names at the lines reported in the error message.