data1701d / Publications
Forum
Is it possible for EA to close all orders?
This works in scripts but not in EA. Comment( Commentary + " | Closing All Orders, please wait ..." ); CloseAll( "None", 0, OP_ALL ,MaxRetry, Slippage, Commentary ); Comment(""); When compiling EA it gives error 'OP_ALL' variable not defined. I just started learning mql4, any help is