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 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
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: