Forum

Breakeven function not working for non-forex pairs

Hi, attached is my simple function to breakeven stoploss after price reaches certain profits on that pair. It is working on all the forex pairs i have tested but, not working on other pairs like indices and cryptos. Im trying to figure out how do i amend my code for this but cant really find much at

No history data no trading operations mql5 market validation

Hi, I encoutered this error while trying to pass the validation check to list my mt5 ea on the market, the EURUSD test was passed with 18 trades, but the xauusd it states there were no history data and thus no trading operations , any way i can fix this? Thank you! :)

Help with moving stop to breakeven.

void UpdateStopLoss() { if (!InpBEtrade) { return ;} double bid = SymbolInfoDouble ( _Symbol , SYMBOL_BID ); bid = NormalizeDouble (bid, _Digits ); double ask = SymbolInfoDouble ( _Symbol , SYMBOL_ASK ); ask = NormalizeDouble (ask, _Digits ); int total = PositionsTotal (); for (