Slippage is in Points. If you mean three pips on a five digit broker, that must be 30. Likewise any other external pip variables.
The build in variable is Digits, so we have no idea what normalize(,digit) is.
You don't check ticket for being negative and print out or alert any errors so any number of things could be wrong. Print all the variables, lots, price, SL, TP, and ASK/BID
If you are running in the tester, Alerts become Prints, in the journal tab.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
This sets StartTime to TimeZone number of hours after the EA was compiled not after the start of the day.
Can never happen.
Insert alerts in the code
- You don't show all the code, so we have to guess.
- Slippage is in Points. If you mean three pips on a five digit broker, that must be 30. Likewise any other external pip variables.
- The build in variable is Digits, so we have no idea what normalize(,digit) is.
- You don't check ticket for being negative and print out or alert any errors so any number of things could be wrong. Print all the variables, lots, price, SL, TP, and ASK/BID
- If you are running in the tester, Alerts become Prints, in the journal tab.
You can not use OrderOpenDate() or any other ones until you perform a orderSelect()