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