Can't get EA to short
if (Ticket < 0) // Success :) { Alert ("Opened order Sell ",Ticket); return; // Exit start() } if (Fun_Error(GetLastError())==1) // Processing errorsWhen does OrderSend return a negative number and what do you do with it?
if (Ticket < 0) // Success :) { Alert ("Opened order Sell ",Ticket); return; // Exit start() } if (Fun_Error(GetLastError())==1) // Processing errorsWhen does OrderSend return a negative number and what do you do with it?
You agree to website policy and terms of use
Hello everyone,
So I've been reading the mql4 book I've tried my hand at customising the basic EA code that's in there.
I've got it working with different entry/exit signal but I can't seem to get it to short. I've put alerts in every stage of the EA but still can't figure out where the problem is.
Any help would be greatly appreciated! Learning how to program can be quite frustrating at times!
Here's the code: