In mt4 or mt5 is it possible to set the SL or TP based on the price of profit or losing amount instead of points or pips? e.g. I only allow this trade to profit $50 or to lose $50, so i put in the specific TP or SL of $50.00. If can't is there a FREE simple EA that can do that?
Anyone?
In my opinion there is no such a possibility.
In mt4 or mt5 is it possible to set the SL or TP based on the price of profit or losing amount instead of points or pips? e.g. I only allow this trade to profit $50 or to lose $50, so i put in the specific TP or SL of $50.00. If can't is there a FREE simple EA that can do that?
Anyone?
Yes you can do that.
You can also use:
if(OrderProfit()<-50) { OrderClose(.... }
The danger in this method is that if you eventually start to open larger positions, or you use an algo with dynamic lot sizing, the danger exists that the initial order is well over -50$ and the order will be closed immediately after open,
So a bit more code is needed to make sure that this does not happen.
- In code:
Risk depends on your initial stop loss and lot size.
- 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
- Use a GUI: Indicators: 'Money Manager Graphic Tool' indicator by 'takycard' Forum - Page 5
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
In mt4 or mt5 is it possible to set the SL or TP based on the price of profit or losing amount instead of points or pips? e.g. I only allow this trade to profit $50 or to lose $50, so i put in the specific TP or SL of $50.00. If can't is there a FREE simple EA that can do that?
Anyone?