Download MetaTrader 5
To add comments, please log in or register
MQL5 Cloud Network speeds up calculations. Try it!
dsgrant07
11
dsgrant07 2015.12.25 11:23 

I'm trying to troubleshoot an issue with a ea I'm working on. During back testing, the test is running smoothly however at certain point there is a huge gap in the data and a closed order with a huge loss. 

I've attached two screenshots showing the issue.

 

 

 

As could be seen in the second screenshot above, order number 260 is closed, however there is no record of the order being opened by the EA. Also the is a noticeable gap in time between the second to last and last orders. I've check back the downloaded history for the pair and there doesn't appear to be any data gaps.

 Any assistance in troubleshooting this issue would be appreciated. 

Gordon Gekko
668
Gordon Gekko 2015.12.25 11:53  

As I can see, your EA opened #260 buy order at 2011.04.28. Price turned downward, this order had an increasing loss until it reached the zero equity of the account at 2013.04.15 and stopped out.

This is no data issue, but expert.

whroeder1
13644
whroeder1 2015.12.25 14:30  
You must control losses with a stop loss. You risked infinite loss, you lost your account.
  • You place the stop where it needs to be - where the reason for the trade is no longer valid. E.g. trading a support bounce the stop goes below the support.
  • Account Balance * percent = RISK = |OrderOpenPrice - OrderStopLoss| * OrderLots * DeltaPerlot (Note OOP-OSL includes the SPREAD)
  • Do NOT use TickValue by itself - DeltaPerlot
  • You must normalize lots properly and check against min and max.
  • You must also check FreeMargin to avoid stop out
stanislass
63
stanislass 2015.12.25 18:16  

 

using a grid and martingale.
the tester does not show you the HDD.
Otherwise you would reduce your account and do not would use !!!
DeanDeV
330
DeanDeV 2015.12.25 20:14  
WHRoeder:
You must control losses with a stop loss. You risked infinite loss, you lost your account.
  • You place the stop where it needs to be - where the reason for the trade is no longer valid. E.g. trading a support bounce the stop goes below the support.
  • Account Balance * percent = RISK = |OrderOpenPrice - OrderStopLoss| * OrderLots * DeltaPerlot (Note OOP-OSL includes the SPREAD)
  • Do NOT use TickValue by itself - DeltaPerlot
  • You must normalize lots properly and check against min and max.
  • You must also check FreeMargin to avoid stop out
Stop losses are for whimps..
whroeder1
13644
whroeder1 2015.12.26 12:38  
DeanDeV: Stop losses are for whimps..
If you don't have $Billions in the account like banks/hedge funds, you are a wimp.
/
To add comments, please log in or register