Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
i don't expect you to do that! i have already done that before posting here . code is running fine with NO errors , that's why i posted since i can't find an error to fix
i don't expect you to do that! i have already done that before posting here . code is running fine with NO errors , that's why i posted since i can't find an error to fix
If you believe you don't have a bug, why did you post here? Post your whole code to get help, not just a part that you believe is running fine
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.
Why don't you simply debug your code instead of asking unanswerable questions. No one here knows about your broker and how they set up your account.
i have already done that before posting here , it works fine on backtest but doesn't perform trades on live demo account
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
Use the debugger or print out your variables, including _LastError and prices and find out why. Do you really expect us to debug your code for you?
i don't expect you to do that! i have already done that before posting here . code is running fine with NO errors , that's why i posted since i can't find an error to fix
So where is the log of your printout?
Don't try to use any price or server related functions in OnInit (or on load), as there may be no connection/chart yet:
i don't expect you to do that! i have already done that before posting here . code is running fine with NO errors , that's why i posted since i can't find an error to fix