Custom Loop for Testing Moving Averages
-
Hi, there!
I'm trying to do a Custom Loop to check an array of Moving Averages e.g.: (62,100,200,800).
I want to do a loop for check every MA under certain conditions, so, I need the program flow pass 'N' times ('N' = number of MA in array) I'm using a FOR loop, but the program only test the 62 MA... only test the first element of the array (62)...
I have seen source code of some FxDreema blocks that do similiar work, and they use FOR loop....Can you help me? Any Ideas?
Thanks in advance. -
Arrays are too much for EA builder, so will suggest to create some custom block, starting here: https://fxdreema.com/studio/MQL4
Use ~next~ where the condition will be true, it's like return, but instead it will be replaced with function calls for the next blocks.Or use 4 conditions

-
OK. Sorry. It's solved.
Yes, I'm using a custom block....the problem was a "indicator Rise/Fail" block...it was with "pass once per bar" parameter selected....that was the problem.Thanks!