Download MetaTrader 5
To add comments, please log in or register
Share links on the Forum. Now they have Rich Content!
Pier Gaetano Novara
224
Pier Gaetano Novara 2015.09.10 16:47  

Is it possible to have a functionality that give the Profit based on the stop loss?

I mean a kind of OrderProfit with parameter OrderProfit(p) where p is my stop loss

whroeder1
13991
whroeder1 2015.09.10 23:35  
  1. 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.
  2. Account Balance * percent = RISK = (OrderOpenPrice - OrderStopLoss)*DIR * OrderLots * DeltaPerlot (Note OOP-OSL includes the SPREAD)
  3. Do NOT use TickValue by itself - DeltaPerlot
  4. You must normalize lots properly and check against min and max.
  5. You must also check FreeMargin to avoid stop out
/ /12
To add comments, please log in or register