I encountered a big problem at testing my program in #backtest #Mql5. I using the function #OnTradeTransaction for check StopLoss events.
sometimes two or more stops occur at the same price and same time , but only one report is given in the function OnTradeTransaction. Can anyone help me?
sorry My code is very big and i can only report Log file.
Thanks!
at 14:48:32 two stoploss occoured(226 and 228) but in OnTradeTransaction Only reported one Stop(226) no any report from stoploss....
LH 019:14:13.071 Trade 2020.01.1714:48:32 stop loss triggered #226buy 0.34 EURUSD 1.11123 sl: 1.11062 [#234sell 0.34 EURUSD at 1.11062]
EP 019:14:13.071 Trades 2020.01.1714:48:32 deal #58sell 0.34 EURUSD at 1.11062 done (based on order #234)
QF 019:14:13.071 Trade 2020.01.1714:48:32 deal performed [#58sell 0.34 EURUSD at 1.11062]
HD 019:14:13.071 Trade 2020.01.1714:48:32 order performed sell 0.34 at 1.11062 [#234sell 0.34 EURUSD at 1.11062]
DE 019:14:13.071 Trade 2020.01.1714:48:32 stop loss triggered #228buy 0.25 EURUSD 1.11146 sl: 1.11062 [#235sell 0.25 EURUSD at 1.11062]
IE 019:14:13.071 Trades 2020.01.1714:48:32 deal #59sell 0.25 EURUSD at 1.11062 done (based on order #235)
NK 019:14:13.071 Trade 2020.01.1714:48:32 deal performed [#59sell 0.25 EURUSD at 1.11062]
CQ 019:14:13.071 Trade 2020.01.1714:48:32 order performed sell 0.25 at 1.11062 [#235sell 0.25 EURUSD at 1.11062]
NQ 019:14:13.071 Trade 2020.01.1714:48:32 order [#232sell stop 0.5 EURUSD at 1.11062] triggered
FP 019:14:13.071 Trades 2020.01.1714:48:32 deal #60sell 0.5 EURUSD at 1.11062 done (based on order #232)
NR 019:14:13.071 Trade 2020.01.1714:48:32 deal performed [#60sell 0.5 EURUSD at 1.11062]
LG 019:14:13.071 Trade 2020.01.1714:48:32 order performed sell 0.5 at 1.11062 [#232sell stop 0.5 EURUSD at 1.11062]
2020.01.1714:48:322020.01.1714:48:32 --------- START OnTradeTransaction ---------
2020.01.1714:48:32 ONTRADE TYPE= TRADE_TRANSACTION_DEAL_ADD2020.01.1714:48:32 DEAL_ADD DEAL_REASON= 42020.01.1714:48:32OnTradeTransaction OUT-SL Position=226
Hello Angevoyageur,
" Access point Europe. Backtesting with : "
can you give me complete IP of this server ?
Not really.
I guess you do your tests seriously therefore may you know what server best for backtest. This is the background
Isn't it more simple to have a diff check of the Balance in Transaction?
Thanks.
I encountered a big problem at testing my program in #backtest #Mql5. I using the function #OnTradeTransaction for check StopLoss events.
sometimes two or more stops occur at the same price and same time , but only one report is given in the function OnTradeTransaction. Can anyone help me?
sorry My code is very big and i can only report Log file.
Thanks!
at 14:48:32 two stoploss occoured(226 and 228) but in OnTradeTransaction Only reported one Stop(226) no any report from stoploss....