Simplifying Task
-
i got this and it looks like repetive.
i know there is the repeat with different tf in the timeframe block but how do i set that it changes the variable modified with each change in timeframe -
What should be the end result of this?
-
i got 1 variables for each timeframe.
so for each timeframe it go through the condition and save the result to the variable assigned to it either as up or down like Stoch_M5=Up.
it then repeats the same steps for different timeframe and store them to different variable e.g Stoch_M15=Up, Stoch_M30=Up all using the same set of condition. -
Ok, but do you really need all those variables? Maybe there is a simpler way to do the thing that you want to do.
Otherwise for what you have now, I imagine using arrays. But using arrays is easier in plain code and hardly possible with using blocks
