Your print statement is not repeating itself. I find no problem in your code.
I agree. all works like as it should be. I can´t quite understand now what are you trying to do with it: ENUM_TIMEFRAMES timeframe_loop[] = {PERIOD_M15, PERIOD_H1}; as far I can predict you assume that H1 does not execute every 15 minutes or what? for the for loop, it is still 2, and it must iterate through both arrays anyway, because that´s exactly how you wrote it. Using a nested loop you get 2x2 execution per iteration cycle if both arrays have 2 elements and everything is correct.
I don´t understand the nature of the problem and what exactly you want to achieve. If you want us to think along, say in more detail what you want to achieve and what outputs ja when you want to see ?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I've made the overall code much simpler by avoiding candlestick type recognition, SLs etc but problem remains the same. How do I avoid the print statement from repeating itself ?