Tshepo Nkosi:
Hello
Can you kindly review my code and advise the cause of the invalid stop error. Please see the code below. Thanks
You should always normalize a price to your given digits specificity before you send it in an order.
Also, some broker-dealers require SL's and TP's to be sent as position modifications--meaning they can't be sent within the entry order. Research your broker-dealer.
Documentation on MQL5: NormalizeDouble / Conversion Functions
- www.mql5.com
Rounding floating point number to a specified accuracy. Parameters value [in] Value with a floating point. digits [in] Accuracy format...
Tshepo Nkosi: Can you kindly review my code and advise the cause of the invalid stop error. Please see the code below. Thanks
Please read and apply the following in your EA (even if it is not for a Market product):
The checks a trading robot must pass before publication in the Market
MetaQuotes, 2016.08.01 09:30
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.
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
Can you kindly review my code and advise the cause of the invalid stop error. Please see the code below. Thanks