• Overview
  • Reviews
  • Comments
  • What's new

Automatic StopLoss and TakeProfit DEMO

This EA allow you to automatically place the Stop Loss and the Take Profit (by fixed distance in pips, calculating the distance using the ATR indicator or Supports and Resistances detected automatically). The Trailing Stop and Breakeven can be activated automatically also by distance in pips or by the percentage of the TP. (Example: if the TP is placed at 80 pips and you want it to activate at 50% of the distance, then at 40 pips it will be activated; This option is used when choosing the mode of Take Profit by ATR or Support and Resistance).

This EA is the Demo Version of "Automatic stop loss takeprofit”, and it works only in the AUDJPY pair, it can be tested in the strategy tester.

https://www.mql5.com/en/market/product/31322


Parameters

 Set_Stop_Loss = “True” to set automatically the Stop Loss, or “False” to deactivate this function.

Set_Take_Profit = “True” to set automatically the Take Profit.

Allow_Magic_Number = “True” to activate this EA to modify the trades only with certain magic number you choose,  or “False” to modify all the trades of that pair.

Magic_Number = Type here the magic number you wish to manage; it is useful for not confuse trades among other EAS.

Alert_On = “True” to receive an alert each time the SL or TP have been placed in the order.

Use_Spread_Filter = “True” to apply the spread filter.

Max_Spread= Maximum allowed spread, if this is exceeded the operation will be closed.     

Use_Close_Time = “True” to close operations at a certain time.

Close_Hour= Hour to close operations.

Close_Minute= Minute to close operations.

Strategy_Tester = “True” to open automatic trades in the 4 Strategy Tester.

Activate_Display_Values =  “True” to display the distance in pips and the value (in currency) of the loss limit and profit. It does not take into account the commissions and the swap.

Stop_Loss_Method = You can decide the mode for set the Stop Loss , by distance calculated in “Pips”, by “ATR” or using “Support and Resistance”.

SL_Fix = Enter fixed Stop Loss in pips. Only if you choose “Stop Loss Method – FIXED_SL”.

TimeFrame_ATR_SL = Select the time frame to calculates the distance for Stop Loss, using the ATR Indicator. Only if you choose “Stop Loss Method – ATR_SL”

SL_ATR_Multiplier = Type an ATR multiplier. Only if you choose “Stop Loss Method – ATR_SL”

ATR_Period_SL Type an ATR period. Only if you choose “Stop Loss Method – ATR_SL”

TimeFrame_Support_Resistance_SL= Select the time frame to calculates the distance for Stop Loss, according to Support and Resistance. Only if you choose “Stop Loss Method – SUPPORT_RESISTANCE_SL”

Min_Pips_SL = Type the minimum distance that could have a Support or Resistance for any Stop Loss. Only if you choose “Stop Loss Method – SUPPORT_RESISTANCE_SL”

Take_Profit_Method = You can decide the mode for set the Take Profit,  by distance calculated  in “Pips”, by “ATR” or  using “Support and Resistance”.

TP_Fix = Enter fixed take profit in pips. Only if you choose “Take Profit Method – FIXED_TP”.

TimeFrame_ATR_TP = Select the time frame to calculates the distance for Take profit, using the ATR Indicator. Only if you choose “Take Profit Method – ATR_TP”

TP_ATR_Multiplier = Type an ATR multiplier. Only if you choose “Take Profit Method – ATR_TP”

ATR_Period_TP = Type an ATR period. Only if you choose “Take Profit Method – ATR_TP”

TimeFrame_Support_Resistance_TP= Select the time frame to calculates the distance for Take Profit, according to Support and Resistance. Only if you choose “Take Profit Method – SUPPORT_RESISTANCE_TP”

Min_Pips_TP = Type the minimum distance that could have a Support or Resistance for any Take Profit. Only if you choose “Stop Loss Method – SUPPORT_RESISTANCE_TP”

Activate_Trailing_Stop = Active or inactive auto trailing stop.

Type_Of_Triailing_Stop = You can choose between two methods of activation. The first one is using a fixed distance in Pips, and the other is using a percentage of TP.

TrailingStop = Type the distance in pips or percentage.

TrailingStart = Type the distance in pips or percentage.

Activate_Break_Even = Active or inactive auto breakeven.

Type_Of_Break_Even = You can choose between two methods of activation. The first one is using a fixed distance in Pips, and the other is using a percentage of TP.

BreakEven = Type the distance in pips or percentage.


No reviews
Version 1.30 2018.10.26
- A function was added to show the distance in pips and the value (in currency) of the loss limit and the benefit. it does not take into account the commissions and the swap.
Version 1.20 2018.09.23
-Automatic operations are opened to test in "Strategy Tester"