What causes stack overflow error in mql4?
-
Hello, What causes stack overflow error in mql4 during compiling? when i increase the loop that look for previous candles the ea introduce the stack overflow error.
-
Does your loop ever end?
-
@roar yes it end, then the ea doesn't complete the compiling. it looks like he reach some memory limit or mybe compiling timeout
-
Can you show the error log of the metaeditor when you try to compile?
-
@roar i mean its only happen when i a attach the EA to the chart and increase the count. also there is no compiling error in the metaeditor
-
Ok, so compiling is not the problem here.
I need to see the loop and when does the loop end. -
@roar basically the loop its start from a highest candle of a day and keep decreasing the value by 1 to check if there is a higher candle in front until the candle id 1.
-
@zearma yes, but there is some oversight neither of us can see right now.
-
@roar i add this property to the EA and i increase the size and its work fine now #property stacksize 52345600
Thanks Anyway . -
@roar is there away to add #property from fxdreema