Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Please read and apply the following to your code ...
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.
Forum on trading, automated trading systems and testing trading strategies
Can someone explain this or is anyone in a similar situation?
Fernando Carreiro, 2023.10.06 11:18
Are you applying the following ...
Setting the TakeProfit and StopLoss levels within the SYMBOL_TRADE_STOPS_LEVEL minimum level Attempt to modify order or position within the SYMBOL_TRADE_FREEZE_LEVEL freeze level
Forum on trading, automated trading systems and testing trading strategies
getting error "Invalid Price Length 13" when placing an order
Fernando Carreiro, 2023.06.17 23:15
Also pay attention to the following ... courtesy of Vladimir Karputov
Forum on trading, automated trading systems and testing trading strategies
Tick size vs Point(), can be a little tricky in Multicurrency EA
Fernando Carreiro, 2022.03.09 12:11
Tick Size and Point Size can be very different especially on stocks and other symbols besides forex.
Always use Tick Size to adjust and align your prices, not the point size. In essence, make sure that your price quotes, are properly aligned to the Tick size (see following examples).
... double tickSize = SymbolInfoDouble( _Symbol, SYMBOL_TRADE_TICK_SIZE ); ... double normalised_price = round( price / tick_size ) * tick_size; ... // Or use a function double Round2Ticksize( double price ) { double tick_size = SymbolInfoDouble( _Symbol, SYMBOL_TRADE_TICK_SIZE ); return( round( price / tick_size ) * tick_size ); };
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
2020.04.01 12:20:36 failed modify #3 sell 0.95 EURUSD sl: 1.09466, tp: 1.09066 -> sl: 1.09262, tp: 1.09066 [Invalid stops]
the same for "buy".
Can someone maybe help me? the code is below. Would mean the world to me!
If you have any solutions, please dont speak to me like a programmer :) Me and my freind coded it, well he did the most part. Im not very good at programming so would be cool if someone could provide the missing code and where to put! thanks!