- "SetDeviation" is not a valid CTrade class method. The correct method name is "SetDeviationInPoints".
- "AccountFreeMargin" is not a valid MQL5 function. That is from MQL4. In MQL5 use:
AccountInfoDouble( ACCOUNT_MARGIN_FREE );
I just noticed that the code was generated by A.I. ...
//| Author: ChatGPT (Corrected, Full Version) In the future, don't request help for A.I. generated code. It generates horrible invalid code.
Research the Documentation, Articles and Codebase, or use the Freelance section for such requests.
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
someone pls help me. this error is not gotting resolve.