Download MetaTrader 5

Progrramming Question?

To add comments, please log in or register
Mohammad Soubra
30735
Mohammad Soubra  
Hi,

I wonder if any body know any function (Script.ex4) to calculate the Max. DD% in a historical period such as a year ago..

Thanks,
whroeder1
17105
whroeder1  
Could EA Really Live By Order_History Alone? (ubzen) - MQL4 forum will give you the orders. determine the maximum
  • 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/100 = RISK = OrderLots * (|OrderOpenPrice - OrderStopLoss| * DeltaPerLot + CommissionPerLot) (Note OOP-OSL includes the SPREAD, and DeltaPerLot is usually around $10/pip but it takes account of the exchange rates of the pair vs. your account currency.)
  • 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
Mohammad Soubra
30735
Mohammad Soubra  
whroeder1, Thanks for sharing your great experience
To add comments, please log in or register