INFOPad is an information panel that creates information on the selected currency pair in the MetaTrader terminal. Shows the main…
The X and The xCustomEA: Testing and Optimization
Tick Hamster Automatic trading robot. Nothing extra!
Main
Documentation
Settings
FAQ
Changelog
Reviews
Comments
Extra
About SafetyLOCK
SAFETYLOCK: Secure Your Trades Against Sharp Market Reversals
Trading on financial markets comes with high risks, especially during sudden trend reversals. SAFETYLOCK is a unique tool that helps traders minimize losses by automatically opening an opposite order for an already opened position. You can now trade with confidence, knowing that unexpected market movements won’t affect your trades.
Why Choose SAFETYLOCK PRO?
SafetyLOCK PRO is an advanced version that offers professional-level protection for your positions by using hedging techniques with opposite pending orders. This solution helps both traders and automated systems (Expert Advisors) manage risks effectively.
How Does SAFETYLOCK Work?
- Automatic Placement of Opposite Orders. As soon as you or your EA opens a trade, SAFETYLOCK immediately sets an opposite pending order (Buy Stop or Sell Stop) for that position.
- Lock in Loss-Making Positions. If the market moves against your position, the pending order will activate, creating a protective lock (LOCK) to limit potential losses.
- Trade Management Flexibility. To maximize profitability, you can choose to close the initial position, use a trailing stop, or increase your lot size.
- Adjustable Settings. You can modify the entry price of the pending order to follow the price movement of the open position, giving you full control.
Benefits of Using SAFETYLOCK PRO
- Supports All Trading Strategies. SAFETYLOCK adapts to any trading strategy, fitting your personal style and preferences.
- Protection Against Unforeseen Losses. No need to worry about sudden market shifts—SAFETYLOCK will automatically shield your trades.
- Ease of Use. Set up the system once, and it will work for you, allowing you to focus on making strategic trading decisions.
- Boost Profit Potential. Effective risk management with SAFETYLOCK not only protects your capital but also allows you to capitalize on unexpected market fluctuations.
How does SafetyLOCK work?
What do people write about SafetyLOCK?
You can Download free SafetyLOCK or Buy full
Get started for FREE!
You can download and install our program for free!
And you can test it on your DEMO account without time limits
You can also test our program for free on a REAL account using the USDJPY symbol!
You can Buy the full version of SafetyLOCK
Trade Accounts
Computers / Activations
FULL MT4 version
For MetaTrader 4
50 $
RENT for 3 months
For MetaTrader 4
30 $
SafetyLock for MT5 coming soon
Before making a purchase, we highly recommend reviewing our instructions and FAQ section to ensure a smooth experience.
Links
SafetyLock PRO guardian advisor or locker advisor!
Nützliche Links
Have you installed MetaTrader?
MetaTrader is required for installing from www.expforex.com
Table of Contents (click to show)
Description
“The greatest fortification of the fortress is its defenders ….”
Silovan Ramishvili
How many times have you faced losses because you weren’t watching the market at the right moment?
How often do you sacrifice more important things just to keep an eye on the quotes and charts?
Probably every second reader has found themselves in a situation where, while waiting for a trend to continue, they remove the Stop Loss, hoping that the trade will yield more profit than originally expected.
This is where I want to begin my article.
The Forex market is highly unpredictable, and relying solely on a single trading strategy or Expert Advisor (EA) can be extremely risky.
There are countless Forex advisors available online, with their creators assuring you that their working strategy or EA will consistently bring you profit.
However, more often than not, these Expert Advisors eventually make calculation errors, and you run the risk of losing your capital.
Some traders attempt to safeguard their positions with hedge (lock) orders or opposite trades, aiming to minimize losses.
But in reality, using a Safetylock or lock is often not a long-term solution, but rather a temporary comfort that doesn’t fully address the risk.
Main functions
Expert Advisor (EA) Exp – SafetyLock PRO was written to protect such systems from misses not by blocking positions but by installing oppositely directed pending orders.
It helps traders avoid a sharp market turn by placing an opposite pending order for an already open position(Deal).
If a trader or Expert Advisor(EA) opens a position(Deal), our defender EA SAFETYLOCK opens a deferred opposite order(Buy Stop or Sell Stop) to this position.
If the trader’s position goes to a loss, the pending protective order triggers, thereby creating a LOCK.
In the functions of the Expert Advisor, it is possible to close the original(source) position or work with the trailingstop and multiply the lot.
There is also a function to modify the price of opening a pending order following the price of the position.
Example
- You or another Expert Advisor opens a BUY position (DEAL).
- Our Expert Advisor, SAFETY LOCK, Opens a Pending Order, SELL STOP.
- If the price rises, then our Expert Advisor modifies the opening price of a pending order (Trailing) following the price.
- When the price rolls back (Price Rollback), then the Pending Order is activated.
- A Lock is created from two positions:
- No. 1 Your position
- No. 2 SAFETYLOCK position.
The algorithm of this Expert Advisor:
The Expert Advisor (EA) starts his work by checking all open positions for the presence of already placed pending orders.
MagictoMonitor – Magic numbers of the positions being checked. This option is designed to limit the expert’s work on specific systems.
For example, if you want the system to follow the positions of a particular Expert Advisor, you must replace this parameter with the magic number of this Expert Expert Advisor (EA).
If you want an Expert Advisor (EA) to follow all positions, including positions that have been opened manually, this parameter should be set to 0
SymbolToMonitor – The name of the instrument behind which the positions should be monitored. This option is designed to restrict the expert from working on specific symbols.
For example, suppose you want the system to keep track of the positions of a particular symbol.
In that case, you must replace this parameter with the exact name of the instrument (for example, EURUSD USDCHF USDRUR).
If you want an Expert Advisor (EA) to follow all positions, including positions that have been opened manually, this parameter should be set to 0
Suppose it is not yet the pending order on the checking position. In that case, SafetyLock PRO exposes a pending order at a distance delta from the current price (from the current one because not all orders are open at a sufficient distance from the price).
It should be noted that if the positions are opened when the Exp – SafetyLock PRO, then the price of these pending orders will be at a distance delta from the opening price of the position.
A pending order can be set with the parameters StopLoss and TakeProfit.
Also, a pending order can be set with a lot multiplied by MNLot.
For example, if the position is open with lot 0.5 and the parameter MNLot = 2, then the pending order will be opened with lot 1.0.
Further, the system Exp – SafetyLock PRO checks have already opened pending orders.
If the price has left the order for a distance, then the system modifies the pending order, thereby tutoring the order after the price.
If the main position is closed (by stop-loss, take-profit, manual, or another system) – the pending order placed on this position is also deleted.
Parameter OrderSafetyMonitor – regulates the ability to check the orders opened from SAFETYLOCK.
In other words, this parameter allows (true) / disables (false) the setting of pending orders at positions that were opened by the system Exp – SafetyLock PRO.
Three other important parameters should be mentioned in this article: TrailingIfProfit, TrailingStop, and Prchoose.
Sometimes need to include trailingstop on positions.
And if we start talking about an automatic system, we add automatic Trailingstop to this system.
To enable the Automatic trailing stop, the parameter TrailingIfProfit should be set to “true”.
It should be noted that when this function is running, the parameters StopLoss and TakeProfit at the first operation of the function are modified to 0.
Parameter TrailingStop – means the trailing stop.
Parameter Prchoose – Profit in the points(Pips) at which the automatic trailing stop will begin its work.
Result: With specific settings and subsequent verification of the system, I found that this tool is a kind of goldmine for all systems that are available on the Internet.
This tool can rightly claim the title of “Full-fledged system defender”.
But notice that the market is unpredictable and no one, even the most experienced traders, can not with 100% confidence give the analysis of the market.
Other ideas
- The system monitors open orders for all currency pairs or those specified in the Expert Advisor (EA) settings, the parameter Symbol_Monitor.
- The system follows those positions that are exposed in the Expert Advisor (EA) Type_Monitor.
- The system supports those magic numbers that are displayed in the Expert Advisor (EA) Magic_Monitor.
- A pending order is placed with a stop order for a distance StopOrderDeltaifUSE of the current price.
- Further, the Pending Order is monitored.
- If we have passed the distance StopOrderDeltaifUSE from the order and the parameter ModifyOrdPend = true, The price of a pending order is set to Breakeven.
- As soon as the pending order has been triggered, we begin to follow it (watch out for it).
- The system has the function of disabling the monitoring of their orders. Parameter SafetyPosMonitor = false disables monitoring of the positions that this Expert Advisor created. If you set the parameter to true, the system will monitor its pending orders.
- Further, if the Pending Order does not work and the Deal from which the Pending Order was opened is already closed by the user or in another way. The pending order placed on this order is automatically deleted.
- In the system, there is an opportunity to multiply the lots of the Pending order — parameter MNLOT. If, for example, the deal is opened with lot 0.2, then the Pending order will be opened with lot 0.2 * MNLOT.
- If the CloseOneifStopsActive = true, the position on which the Pending Order was opened is closed, and only the position created by this Expert Advisor will remain in the work
- Also, there is an opportunity in the system to expose StopLoss and TakeProfit of pending orders.
- It is possible to include a trailing stop on the position TrailingStop.
When the terminal is restarted, the system does not expose the new Pending orders. It monitors the Pending orders placed earlier.
The system can monitor a vast number of orders.
Warning. Calculation of data on the EAPADPRO panel:
As soon as there is a position for which the algorithm will be applied, the data will be updated.
Because the utility monitors all currency pairs, the parameters are calculated for each currency pair separately when a pending order can open.
External Variables and Settings
Table of Contents (click to show)
Name | Description | ||
---|---|---|---|
MilliSecondsTimerForMonitoring | number of milliseconds of execution of the algorithm (default 1000 = 1 second) | ||
Monitoring and Filter settings | |||
symbol Monitoring | SymbolMonitoring= ALL_SYMBOL Check all symbols; All deals from all currency pairs on the account. If you installed an advisor on a chart of any currency pair, he will monitor all currency pairs on the account; SymbolMonitoring= Check only the current symbol; The advisor will only monitor and accompany deals with the symbol on which the expert is installed; SymbolMonitoring= SPECIFID_SYMBOL; Check only deals as specified in the SPECIFID_Symbol_Monitor symbol. For example, EURUSD – then the adviser will accompany deals only on the symbol EURUSD; | ||
SPECIFID_Symbol_Monitoring | List of symbols separated by commas for monitoring. You can specify symbols for monitoring: SymbolMonitoring = SPECIFID_SYMBOL SPECIFID_Symbol_Monitoring = EURUSD, USDCHF, USDJPY then, the adviser will follow 3 currency pairs! Warning! You must specify the characters as written in the “Market Watch” If it is written EURUSD.c, you need to write EURUSD.с instead of | ||
Type_Monitoring | Type of deals for monitoring. BUY SELL ALL | ||
Magic_Monitoring | The magic number of deals for monitoring. Now you can specify a list of magic numbers separated by commas, which you need to Check. For example: Magic_Monitoring = -1 means that they will check all magic numbers; Magic_Monitoring = 0 means that manual deals will be monitored (without Magic Number); Magic_Monitoring = 555,777 means that magic numbers 555 and 777 will be monitored; | ||
Comment_Monitoring | This option filters transactions for placing LOCK on positions whose comments coincide with Comment_Monitoring For example: Comment_Monitoring= “” – monitors all position (deals), no matter what their comment; Comment_Monitoring= “VirtualTRadePad” – monitors all deals, with the comment of VirtualTRadePad, even if the comment has VirtualTRadePad-1 or VirtualTRadePadEXTRA or TickVirtualTRadePadEXTRA | ||
Min_Lot_Monitoring | The minimum lot for monitoring by the Expert advisor, if 0 – the parameter is disabled; | ||
Max_Lot_Monitoring | The maximum lot for monitoring by the Expert advisor, if 0 – the parameter is disabled; | ||
SafetyPosMonitoring | Enable monitoring of the positions opened by the SafetyLock Expert Advisor (EA). If SafetyLock has locked your position by placing a pending order and this pending order was activated and turned into a position, then SafetyLock will install a new pending order for this position. This algorithm is similar to the Swing algorithm. | ||
LockOnlyLossPosPoint | Locking only those positions for which the current loss is less than the specified loss in Points (Pips) (indicated with a minus), 0 – disabled. | ||
LockOnlyProfPosPoint | Locking only those positions for which the current profit is greater than the set profit in Points (Pips), 0 – disabled. | ||
LockOnlyLossPosPoint + LockOnlyProfPosPoint | -Combined Condition (Both Parameters Set) When both LockOnlyLossPosPoint and LockOnlyProfPosPoint are set (i.e., not 0), the locking will be applied to positions that meet either condition: Positions with a loss greater than or equal to LockOnlyLossPosPoint. Positions with a profit greater than or equal to LockOnlyProfPosPoint. This provides flexibility for managing positions based on both potential losses and profits. | ||
General settings | |||
Stop Loss | StopLoss of Pending Orders SafetyLock | ||
TakeProfit | TakeProfit of Pending Orders SafetyLock | ||
MNLOT | Lot multiplier for pending orders If, for example, the order is opened with lot 0.2, then the pending order will be opened with lot 0.2 * MNLOT ; | ||
StopOrderDeltaifUSEe | Distance for Pending Orders SafetyLock | ||
DynamicStopOrderDelta | Dynamic distance parameter: It allows you to set a different distance of pending orders, depending on the lot of the protected position. With DynamicStopOrderDelta >0: The Higher the lot, the closer the pending order distance! With DynamicStopOrderDelta <0: The higher the lot, the further the pending order distance! DynamicStopOrderDelta is set to a position with a volume of 1 lot. For example: With DynamicStopOrderDelta = 100: If the lot (volume) of your position is 1 lot, then the StopOrderDeltaifUSEe distance will be = 100 Points (Pips) ; If the lot (volume) of your position is 0.1 lot, then the StopOrderDeltaifUSEe distance will be = 1000 Points (Pips) ; If the lot (volume) of your position will be 0.01 lot, then the StopOrderDeltaifUSEe distance will be = 10,000 points; With DynamicStopOrderDelta = -100: If the lot (volume) of your position is 1 lot, then the StopOrderDeltaifUSEe distance will be = 100 Points (Pips) ; If the lot (volume) of your position is 0.1 lot, then the StopOrderDeltaifUSEe distance will be = 10 Points (Pips) ; If the lot (volume) of your position is 0.01 lot, then the StopOrderDeltaifUSEe distance will be = 1 Points (Pips) ; | ||
NumberofStopOrder | The number of pending orders SafetyLock for one position. You can set NumberofStopOrder = 5, then 5 pending LOCK orders will be opened for each position. Allows you to build a grid of pending orders | ||
DistancefromStopOrders | The grid spacing in Points (Pips), when using NumberofStopOrder | ||
ModifyOrdPend | Enable modification of the opening price of pending orders when the price moves. Allows trailing pending orders to follow the price. The price of a Pending BuyStop Order will be modified if the SELL position (main) is profitable and continues to gain profit. And the current price is directed downward. The price of a Pending SellStop Order will be modified if the BUY position (main) is profitable and continues to gain profit. And the current price is directed upwards. The logic of this function is that we bring the pending order closer to our main position in order to reduce the distance between the pending order and the main position. | ||
ModifyOrdPend_STEP | Step of modification in Points (Pips) | ||
ModifyOrdPend_ onlytoOpenPrice | true – the ability to change a pending order only up to the opening price of the position (old version) false – continue to modify the opening price of pending orders by price movement | ||
Additional Close settings | |||
ReopenClosedSafetyOrders | It allows you to reopen the SafetyLock pending orders if they were closed with a stop while the protected position is still open. For example, a Pending order, SafetyLock has worked and activated into a position. This position with stop loss, take profit, or Trailing stop. This position, when the price moves, is closed by its Stoploss or TakeProfit. When this option is enabled, the SafetyLock advisor will setup a new pending order to the main position. | ||
StopOrderDeltaifReopens | The distance to set the pending order SAFETYLOCK after reopening the order. If StopOrderDeltaifReopens = 0, then the distance = StopOrderDeltaifUSEe (old version) The price for setting a pending order will be calculated from the current price. | ||
Close_One_ if_Safety_Closed_In_Profit | Closes the original position if the SafetyLock position has been closed in profits that cover the current loss of the original position. For example, Close_One_if_Safety_Closed_In_Profit = true MNLOT = 2. As soon as the LOCK goes off and the Safety position is closed by the TakeProfit, then the original position will be closed. When using NumberofStopOrder> 1, the profit of SafetyLock positions is calculated from the amount of profit of all positions in the Ticket of the main position. Now, the closing of the main position occurs only when the amount of profit of the closed positions SAFETYLOCK and the main position is greater or is equal to Close_One_if_Safety_Closed_In_Profit_Dollars. All orders and positions of SAFETYLOCK are closed. Close_One_if_Safety_Closed_In_Profit_Dollars Takes into account all profit or loss + Commission + swap on the main position + Profit or loss of all SafetyLock positions (activated pending orders) + Commission + swap that were opened on the main position (by ticket of the main position). Those. all SafetyLock positions on the main position ticket. If the Total Total Profit is greater than Close_One_if_Safety_Closed_In_Profit_Dollars (Deposit Currency), then the main position will be closed. For example : Close_One_if_Safety_Closed_In_Profit = true and Close_One_if_Safety_Closed_In_Profit_Dollars = 10 and StopOrderDeltaifReopens = 10; Original BUY position and SAFETYLOCK order SELLSTOP; The price goes down, BUY closes at a loss of -10 $ and the pending order SELLSTOP is activated; The price continues to go down, and SELL becomes a profitable position with a profit of $ 20; According to the terms of this function: Loss from the original position BUY -10 $ + current position SAFETYLOCK SELL with a profit of + 20 $ = 10 $ total profit; The position SAFETYLOCK SELL is closed, and the total profit from two positions (BUY + SAFETYLOCK_SELL) = 10 $. | ||
Close_One_ if_Safety_More_profitable | Closes the original position if the SafetyLock position is more profitable, overlapping the current loss of the original position. For example, Close_One_if_Safety_More_profitable = true MNLOT = 2. As soon as the LOCK goes off and the Safety position is more profitable, both the Safety position and the original position will be closed. When using NumberofStopOrder> 1, the profit of SafetyLock positions is calculated from the amount of the profit of all positions according to the ticket of the main position. Now, the closing of the main position and positions of SAFETYLOCK occurs only when the amount of profit of these positions is greater or equal. Close_One_if_Safety_More_profitable_Dollars (With NumberofStopOrder> 1) To get the results of previous versions, set Close_One_if_Safety_More_profitable_Dollars = 0. For example : Close_One_if_Safety_More_profitable = true and Close_One_if_Safety_More_profitable_Dollars = 10 and StopOrderDeltaifReopens= 10 andMNLOT = 3; Original BUY position with lot 0.1 and order SAFETYLOCK SELLSTOP with lot 0.3; The price goes down, and the current loss is BUY -10 $, then the pending order SELLSTOP is activated; The price continues to go down, and SELL becomes a profitable position with a profit of $ 30, a loss of the original position BUY = -20 $; According to the conditions of this function: Loss from the original position BUY -20 $ + current position SAFETYLOCK SELL with a profit of + 30 $ = 10 $ total profit; The SAFETYLOCK SELL position and the original BUY position are closed, and the total profit from the two positions (BUY + SAFETYLOCK_SELL) = 10 $! | ||
CloseOneifStopsActive | Close the position if the SafetyLock pending order has been triggered. If the pending order is activated and turned into a position, then if this option is enabled, the main position will be closed. | ||
CloseSafetyPositionsifclosed | Close SafetyLock positions, which are already activated if the main position is closed. If the main position has been closed, then the SafetyLock position will also be closed. | ||
Close_One_if _Safety_Closed | If the position SAFETYLOCK was closed for any reason (manual close, takeprofit, trailing stop), then the main position will also be closed. | ||
Remove_TAKEPROFIT_ ofOriginalifStopsActive | Delete the Takeprofit of the original position if the SafetyLock pending order has been activated; | ||
Remove_STOPLOSS_ ofOriginalifStopsActive | Delete StopLoss of the original position if the SafetyLock pending order has been activated; It allows you to “hard” fix LOCK on two positions while deleting stop loss and takeprofit. Creates a “Safe Lock,” which will not be unlocked. | ||
Trailing Stop settings | |||
TrailingStopUSE | Enable trailing stop positions SAFETYLOCK PRO. Turned ON(true) trailing stop on positions that have been activated and opened by an Expert Advisor (EA) Functional features of experts from www.expforex.com | ||
IfProfTrail | If “true”– when the Expert Advisor starts modifying only from the moment the position is installed to the Breakeven (stoploss on the breakeven point) + TrailingStop of profit Point(Pips). If “false,” the TrailingStop works right after the position is positioned, and the position is put into profit and pulled after the price. | ||
TrailingStarte | Number of profit Points (Pips) to start the trailing stop function | ||
TrailingStope | Distance in points from the current price to the stop-loss. If the current profit is 200 Points (Pips), and TrailingStope = 100, then the stop-loss will be set at +100 points. Thus, we give the price the possibility of a rollback of 100 Points (Pips) maximum. In the other case, StopLoss will work, and the position will be closed at +100 Points (Pips). | ||
TrailingStep | Step of StopLoss when the trailing stop function is enabled. | ||
BreakEven settings | |||
MovingInWLUSE | Enable the break-even function. The function modifies the stop loss in LevelWLoss points when the position dials the LevelProfit of the profit items. Functional features of experts from www.expforex.com Example: LevelWLoss = 50 LevelProfit = 200 As soon as the position accumulates 200 points of profit, the StopLoss of the position will be modified to the opening price of the position (+ spread) + 50 points. Example: LevelWLoss = 0 LevelProfit = 100 As soon as the position accumulates 100 points of profit, the StopLoss of the position will be modified to the opening price of the position (+ spread) | ||
LevelWLoss | The level of profit (LevelWLoss) in points on which the Stop Loss is set when this function is enabled. 1 = 1 point of profit; 0 = Automatic minimum profit mode. If it is 0, then the number of points of profit for the breakeven (stoploss on the breakeven point) = Spread of the current currency pair. | ||
LevelProfit | The number of profit points (LevelProfit) gained by the position for setup a stop-loss in the LevelWLoss of profit points(Pips). LevelProfit must be greater than LevelWLoss | ||
TPWCN EXTRA SETS settingsTPWCM EXTRA SETS Stop when Source Close Pos When the block is turned on: If the source is closed, then the SAFETYLOCK position will not be closed. Instead, a trailing stop or breakeven is activated. Those. Instead of closing a SAFETYLOCK position, you have the opportunity to enable a trailing stop and follow the position further. Trailing stop settings are separate in this case. It turns on only when this position source is closed. Attention: Pending orders that are not activated will be deleted! The TPWCM block works after the initial position is closed, but the SAFETYLOCK position will not be closed, and a stop loss / take profit / trailing stop will be set on it. | |||
TPWCM_Use | TPWCM EXTRA SETS Stop when Master Close Pos When the block is turned ON(TRUE): If the source position closes on the source, the SAFETYLOCK position will not be closed on the SAFETYLOCK. Instead, a SAFETYLOCK for this SAFETYLOCK position can work with a Trailing stop or breakeven function. Instead of closing the SAFETYLOCK position(Deal) on the SAFETYLOCK, you have the opportunity to turn ON a Trailing Stop function and accompany the position further. Trailing Stop settings, in this case, are separate from standard TrailinStopUse. This function can work when the source position is closed on the source. | ||
TPWCM_ TakeProfitWhenCloseSource | The parameter of setting the Take profit for SAFETYLOCK positions (deals), which remain after the source position(deal) is closed; After closing the source deal on the source – there is an opportunity, without closing the SAFETYLOCK deal on the SAFETYLOCK , to set a take-profit from the closing price of the source deal on the source; For Example, TakeProfitWhenCloseSource=100: Close price of Source Position (Deal) BUY = 1.2345, Open price of SAFETYLOCK Position (Deal) BUY = 1.2370, Take Profit of SAFETYLOCK Position (Deal) BUY = (1.2345+100)=1.2445; | ||
TPWCM_ TakeProfitOnlyToProfitZone | When it is turned on(true), the Expert Advisor sets the Take Profit, after closing the deal on the source, only in the positive(profit) zone. If TPWCM_TakeProfitOnlyToProfitZone=true, This function sets Take profit only when the take profit level is in profit. For Example, TPWCM_TakeProfitWhenCloseMaster=100 and TPWCM_TakeProfitOnlyToProfitZone=true: Close price of Source Position (Deal) BUY = 1.2345, Open price of SAFETYLOCK Position (Deal) BUY = 1.2370, Take Profit of SAFETYLOCK Position (Deal) BUY = (1.2345+100)=1.2445; Close price of Source Position (Deal) BUY = 1.2345, Open price of SAFETYLOCK Position (Deal) BUY = 1.2470, Take Profit of SAFETYLOCK Position (Deal) BUY = (1.2345+100)=0, because 1.2445<1.2470! If you turn off TPWCM_TakeProfitOnlyToProfitZone =(false) – the Expert Advisor will set the take profit in any case, even in the negative zone. If, for Example, a SAFETYLOCK position at a loss of -30 points and you set a Take profit = 10 points and TPWCM_TakeProfitOnlyToProfitZone=false, then, when you close the source position (Deal), the Take profit will be set to the level of -20 points (loss). Close price of Source Position (Deal) BUY = 1.2345, Open price of SAFETYLOCK Position (Deal) BUY = 1.2470, Take Profit of SAFETYLOCK Position (Deal) BUY = (1.2345+100)=1.2445! | ||
TPWCM_ StopLossWhenCloseSource | The parameter of setting the Stop Loss for SAFETYLOCK positions (deals), which remain after the source position(deal) is closed; After closing the source deal on the source – there is an opportunity, without closing the SAFETYLOCK deal on the SAFETYLOCK , to set a stop loss from the closing price of the source deal on the source; For Example, TPWCM_StopLossWhenCloseMaster=100: Close price of Source Position (Deal) BUY = 1.2345, Open price of SAFETYLOCK Position (Deal) BUY = 1.2370, Stop Loss of SAFETYLOCK Position (Deal) BUY = (1.2345-100)=1.2245; | ||
TPWCM_ TrailingStopUSE | Enable Trailing stop / Breakeven on the SAFETYLOCK position(deal) of the SAFETYLOCK after the closing of the source deals; Difference between TrailingStopUSE and TPWCM_TrailingStopUSE: 1. TrailingStopUSE (true) is always enabled. That is, he works constantly for all open positions. If enabled (TrailingStopUSE=true), SAFETYLOCK deals will always have a trailing stop. 2. TPWCM_TrailingStopUSE (true) works only when the source position is closed. Only then will the SAFETYLOCK position start working with a trailing stop. Trailing stop works only in the positive(Profit) zone. It means That the Trailing stop function starts to work only when the SAFETYLOCK position already has a profit of TPWCM_TrailingStop points (pips). | ||
TPWCM_ BreakEven | Enable breakeven on SAFETYLOCK positions after closing trades in the source. TPWCM_LevelWLoss Set stop loss at the open price + – TPWCM_LevelWLoss Points (Pips) ; TPWCM_LevelProfit Set the breakeven when the position is in profit TPWCM_LevelProfit Points (Pips) ; | ||
Other settings | |||
SetMinStops | Automatically normalizes all parameters in points to the lowest possible level of stops on the server. If YOU specified stop loss or distance = 10 points, and the minimum stop level on your server = 20 points, then the Expert Advisor automatically normalizes stop loss and distance values to 20 points. If you turn this option off(false), then when the server returns error 130, the Expert Advisor can not install a pending order or stop-loss. Automatically normalize all parameters of the Expert Advisor to the minimum acceptable stop levels. With virtual stops – this parameter does not affect. With AutoSetMinLevel, stop levels will be brought to the lowest possible levels allowed on the server; With ManualSet, the user will receive a message stating that the levels of stops in the Expert Advisor are less than the minimum, and the Expert Advisor will stop trading. | ||
Magic | The magic number of opened pending orders by the EA | ||
Slippage | The level of the maximum possible deviation in price when opening and closing positions (in Points). Example: Slippage = 1 Maximum deviation in price when opening a position = Opening price + -1 point(pips). Slippage = 100 Maximum deviation in price when opening a position = Opening price + -100 points(pips). For example, the price of opening a position when sending a deal to the server = 1.12345 But, if during the time of sending and opening a position (deal), the price has changed within 100 points (Requote), then the position (deal) will open with the price of within 1.12245 – 1.12445 | ||
MarketWatch | For opened positions with stop-loss / take-profit on an account with MARKET execution. First, an EA can open the position (Deal), and after the successful opening, the levels of StopLoss and TakeProfit are modified in this position (deal). True – for ECN brokers and accounts in which it is forbidden to set stops at the same time as opening a position. If your account is in the ECN or NDD group, you must set the option to true |
FAQ Answers to questions
Do you have a recommended setting?
Can you recommend the settings?
How to set up better?
Friends.
It’s a utility! All settings are individual for each user. You yourself customize this utility according to your requirements.
I cannot recommend my settings to you because I do not know your requirements.
Please download the demo version and find your settings that suit your requirements!
Unfortunately, I have no recommendations for settings.
How to set pending order for minimum distance? is it possible to set StopOrderDeltaifUSE= 0?
A pending order is an order that is placed at a specific distance from the current market price or from the price of the position you are protecting. Therefore, a pending order is not executed immediately upon placement.
In the MetaTrader terminal (as well as in other trading platforms), there are specific rules for placing pending orders, stop losses, or take profits—this is known as the minimum stop level, which is determined by your broker.
If you attempt to place a pending order or stop loss at a distance less than the minimum stop level allowed by your broker, the broker will return an error, and the placement of the pending order will be canceled.
In this context, setting the value to 0 allows the Expert Advisor (utility) to automatically retrieve the minimum stop level from your broker and place the pending order at the minimum permitted distance.
The primary function of this Expert Advisor is to facilitate the placement of protective pending orders.
Changelog
When both LockOnlyLossPosPoint and LockOnlyProfPosPoint are set (i.e., not 0), the locking will be applied to positions that meet either condition:
- Positions with a loss greater than or equal to LockOnlyLossPosPoint.
- Positions with a profit greater than or equal to LockOnlyProfPosPoint.
This provides flexibility for managing positions based on both potential losses and profits.
====================================================================================================================================================
-LockOnlyLossPosPoint
Locking only those positions for which the current loss is less than or equal to the specified loss in Points (Pips) (indicated with a minus).
0 – disabled.
This parameter allows you to automatically lock positions that are currently in loss.
The position will be locked when the loss reaches the specified number of pips.
-LockOnlyProfPosPoint
Locking only those positions for which the current profit is greater than or equal to the set profit in Points (Pips).
0 – disabled.
This parameter allows you to automatically lock positions that have reached a certain profit level.
The position will be locked when the profit reaches the specified number of pips.
EAPADPRO v59
--Enhanced Graphical Interface Translation
We have completely revamped and updated the translations across all elements of the graphical interface. This ensures a more accurate and natural localization, allowing the interface to better reflect the linguistic and cultural nuances of our diverse user base. As a result, interacting with the application is now even more seamless and intuitive, providing a more personalized and comfortable user experience.
--Introduced Informative Tooltips for Panel Elements
To elevate user convenience, we've added descriptive tooltips to various panel components. When you hover over buttons and icons, informative explanations about each element's functionality will appear instantly. This enhancement significantly simplifies navigation and interaction within the application, making it easier for both new and experienced users to utilize all features effectively.
--Resolved Minor Bugs and Boosted Stability
In this update, we've addressed and fixed several minor bugs that were affecting the application's performance. These corrections enhance the overall stability and reliability of the program, ensuring a smoother and more consistent user experience. By eliminating these small issues, we've laid the groundwork for a more robust and efficient application.
EAPADPRO v58
Version 24.404 2024.04.04
Global Update EAPADPRO v55
-Added: information about profit from closed positions to the chart.
The information is displayed for each bar of the current timeframe.
You can change the timeframe to see the result of trading on a certain bar of the current timeframe.
If several positions/deals are closed on one bar of the current timeframe, the trading result is summarized, and the total information for a certain bar is displayed.
The information is updated when the next position/deal is closed.
You can turn off showing history in the panel settings.
===========================================================================================
-Added: The status of the Expert Advisor operation if it was launched on the server from "VPS MQL MetaQuotes".
When Expert Advisor is running on the server from MetaQuotes, a message will be created on the home computer that Expert Advisors are running on the server "VPS MQL MetaQuotes". The smiley face is blue.
Attention: If an Expert Advisor is launched on both the server and the home computer, it can trade in parallel on 2 terminals (server "VPS MQL MetaQuotes" + home computer); there may be conflicts.
Attention: If the Expert Advisor is launched on the server "VPS MQL MetaQuotes", do not Turn it on work on the home computer to avoid conflicts.
Frequency of polling the status of work on the server = 1 day.
After deinitialization of the Expert Advisor on the server - It will get the status - stopped.
To test the work on the server from "VPS MQL MetaQuotes", pending orders are created!
===========================================================================================
-Added: The error status of the Expert Advisor operation can now be read on the EAPADPRO panel.
You can click on the Smile or the Expert Advisor operation status bar and you will be shown a message about current errors of Expert Advisor operation.
If you click on the Smile button on the panel, you will be shown the causes and errors and their solutions with pictures.
===========================================================================================
-Added: Notification of errors and opening/closing of trades to the chart in the form of InfoBox.
Notification is shown for 4 types:
---Opening a new trade;
---Closing a deal;
---Modification of a trade;
---Error received by Expert Advisor from the server;
In the EAPADPRO panel settings, you can turn on or off the notification type you need.
Notifications can be viewed as they arrive in the notification queue.
Notifications are accumulated in a data array each time you install/reinstall/change Expert Advisor settings.
In the EAPADPRO header you can also enable disable INFOBOX.
===========================================================================================
-Added: Working with Telegram (Beta version)
For Expert Advisor to work with the Telegram bot, you need to set up the bot on your phone and create a "public" or "private" channel.
To receive notifications from your account, you need to assign your bot as an administrator of your "public" or "private" channel.
Attention! Sending notifications and working with commands takes computer resources! Use the Telegram bot only for your own needs.
New settings for working with Telegram:
EAPadPRO2=" =============== Telegram bot ";
==TG_PRIORITY=TG_HOME_VPS --> Priority of work. This is the priority mode when the Telegram bot works on the MetaQuotes VPS server and your home computer.
TG_HOME_ONLY=1, // Only the HOME bot. The Telegram bot works only on the home computer.
TG_VPS_ONLY=2, // Only the VPS bot. The Telegram bot works only on the MetaQuotes VPS server.
TG_VPS_HOME=3, // First VPS bot, second HOME bot. The Telegram bot works on the MetaQuotes VPS server if you upload it to the server. If not, it will work on your home terminal. Check the work on the VPS server every 10 minutes.
TG_HOME_VPS=4, // First HOME bot, second VPS bot. The Telegram bot works on a home computer, but if the home computer/terminal is turned off, it will work on the VPS server from MetaQuotes. Check the VPS server's work every 10 minutes.
Attention! Screenshots are not available on the VPS server from MetaQuotes!
==TG_Token="" --> Token bot. Token (unique code) of the bot that will send notifications and receive commands
==TG_ChannelName="" --> --> Public Channel Name @. Or "private" ID starts -100 of the private channel. That will send notifications about opening/closing/modification/errors and screenshots from the terminal.
New notification type added to EAPADPRO panel settings:
==Notice Open TG - Send a notification to the Telegram channel if a trade is open;
==Notice Close TG - Send a notification to the Telegram channel if a trade is closed;
==Notice Modify TG - Send a notification to the Telegram channel if a trade is modified;
==Notice Error TG - Send a notification to the Telegram channel if an error is received;
==ScreenShot TG - Send a screenshot to the Telegram channel if a trade is opened or closed;
Attention! This is a beta version of working with the Telegram bot. We are working on improving and adding new features.
If you have any suggestions, please write in the "Comments" section.
===========================================================================================
-Improvement: Code optimization to increase speed.
-Improvement: The speed of the panel update in the strategy tester is now calculated automatically depending on the speed of quotes arrival.
This is done to increase the speed of the program in the strategy tester.
Information update is now equal to 1 real second.
-Improvement: The speed of the program running EAPADPRO in the strategy tester.
Attention! Events in the strategy tester are processed only when a new tick is created.
If a new tick (minimum price movement) is not created, then the panel waits for the next tick.
With Visualization:
Version 48: 390sec (TickSniper 2024-2024)
Version 55: 244sec >>159% (TickSniper 2024-2024)
w/o Visualization:
Version 48: 363sec (TickSniper 2020-2024)
Version 55: 220sec >>165% (TickSniper 2020-2024)
with Visualization:
Version 48: 15750sec (TickSniper 2020-2024)
Version 55: 6220sec >>253% (TickSniper 2020-2024)
-Improvement: The color of the button to close a position on the chart changes depending on the current profit of this position.
-Improvement: Graphic improvements to optimize the Expert Advisor's performance
-Improvement: The account deposit Symbol is cent ¢, USD $, or eur €. All others are the first letter of the deposit currency name.
-Improvement: When visual testing is completed, objects are not removed from the graph.
-Improvement: When creating screenshots after opening/closing positions, the EAPAPDPRO Control Panel will be expanded to show full information.
This is done in order to study the trading history of Expert Advisor on the visualization graph after testing is completed.
-Fixed: Managing positions and orders from the chart when the panel is minimized.
-Fixed: Corrected the error of clearing the chart from unused order labels.
-Fixed: AutoSize when switching charts.
-Fixed: Drawing errors to Print when the Expert Advisor runs on "VPS MQL MetaQuotes"
Version 24.202 2024.02.02
changed the variable type from int to long for some brokers.
Version 24.127 2024.01.27
+Added full control from the chart. Closing positions/orders, removing stop loss / take profit.
For full management and testing of Expert Advisor in the strategy tester.
+Added languages Chinese, Japanese, Korean, Turkish.
Version 24.125 2024.01.25
EaPadPro v47
Version 24.123 2024.01.23
+BugFix with TrailingStarte=0!
+Changed Default Settings:
Close_One_if_Safety_Closed_In_Profit=true;
StopOrderDeltaifUSEe=100;
MNLOT=2;
Version 23.999 2023.12.27
EAPADPRO v46
Version 23.913 2023.09.18
-Last Build Compilation
-EAPADPRO v44
Version 23.401 2023.03.30
EAPADPRO v43
Version 21.948 2021.10.18
Updating the ModifyOrdPend function
Version 21.946 2021.10.16
EAPADPRO v41
Вывод записи о открытии отложенном ордере удалено для экономии физической памяти.
Version 21.612 2021.06.12
EAPADPRO v40 update, according to the new rules for using the MQL5 Market
Version 21.224 2021.02.24
UPDATE EAPADPRO
Version 21.223 2021.02.23
--EAPADPRO v38: Added tags of pending orders to the chart
- Added a new block of work:
TPWCM EXTRA SETS Actions when the Source position is closed
TPWCM_Use = false; // TPWCM_Use -> Use this block
TPWCM_StopLossWhenCloseSource = 0; // TPWCM_StopLossWhenCloseSource -> Setup StopLoss after close Source
TPWCM_TakeProfitWhenCloseSource = 0; // TPWCM_TakeProfitWhenCloseSource -> Setup TakeProfit after close Source
TPWCM_TakeProfitOnlyToProfitZone = true; // TPWCM_TakeProfitOnlyToProfitZone -> Takeprofit only in Profit
TPWCM_TrailingStopUSE = false; // TPWCM_TrailingStopUSE -> Use TrailingStop after close Source
TPWCM_TrailingStop = 0; // TPWCM_TrailingStop -> Distance of TrailingStop
TPWCM_TrailingStep = 1; // TPWCM_TrailingStep -> Step of TrailingStop
TPWCM_BreakEven = false; // TPWCM_BreakEven -> Setup Breakeven after close Source
TPWCM_LevelWLoss = 0; // TPWCM_LevelWLoss -> Distance from OpenPrice to profitable SL
TPWCM_LevelProfit = 0; // TPWCM_LevelProfit -> Number of points gained by pos to use BE
- Added new filter block:
LockOnlyLossPosPoint = 0; // LockOnlyLossPosPoint -> Min loss for open Pending Order
LockOnlyProfPosPoint = 0; // LockOnlyProfPosPoint -> Min profit for open Pending Order
================================================== ================================================== =========================
TPWCM_Use
TPWCM EXTRA SETS Stops when Source Close Pos
When the block is turned on: If the source is closed, then the SAFETYLOCK position will not be closed.
Instead, a trailing stop or breakeven is activated.
Those. instead of closing a SAFETYLOCK position, you have the opportunity to enable a trailing stop and follow the position further.
Trailing stop settings are separate in this case. And it turns on only when this position source is closed.
Attention: Pending orders that are not activated will be deleted!
The TPWCM block works after the initial position is closed, but the SAFETYLOCK position will not be closed and a stop loss / take profit / trailing stop will be set on it
TPWCM_TakeProfitWhenCloseSource
parameter for setting the take-profit for SAFETYLOCK positions that remain after the source is closed;
After closing the source position, it is possible, without closing the SAFETYLOCK position, to set a take profit for it from the closing price of the source;
TPWCM_TakeProfitOnlyToProfitZone
When enabled, true - the advisor sets take profit, after closing the source - only in the profitable zone.
If, after closing the source position, the SAFETYLOCK position is at a loss, then the take profit will not be set until it is in profit;
If disabled, false - the advisor will place a take profit in any case, even in a losing zone.
TPWCM_TakeProfitOnlyToProfitZone = true means that the take profit will be set only when the SAFETYLOCK position is in profit.
TakeProfit (when installed) will be in profit.
For instance:
If the SAFETYLOCK position is at a loss of -30 points and you set take profit = 10 points, then when you close the source position, the take profit will be set at the level of -20 points (loss).
This function sets the take profit only when the take profit level is in profit.
TPWCM_StopLossWhenCloseSource
the parameter for setting the stop loss for SAFETYLOCK positions that remain after the source is closed;
TPWCM_TrailingStopUSE
Enable trailing stop Breakeven on SAFETYLOCK positions after closing trades in the source;
difference between TrailingStopUSE and TPWCM_TrailingStopUSE
TrailingStopUSE is always used. that is, it works constantly.
If you enable it TrailingStopUSE = true, then SAFETYLOCK positions will always be with a trailing stop.
If TPWCM_TrailingStopUSE = true, then trailing stop is enabled only when the original position is closed.
Only then will the SAFETYLOCK position include a trailing stop.
Trailing stop works only in the profitable zone.
This means that the trailing stop starts working only when the position already has a profit in TPWCM_TrailingStop points.
TPWCM_TrailingStop
Trailing stop distance;
TPWCM_TrailingStep
Trailing stop step;
TPWCM_BreakEven
Enable breakeven on SAFETYLOCK positions after closing trades in the source
TPWCM_LevelWLoss
Set stop loss at the open price + - TPWCM_LevelWLoss points;
TPWCM_LevelProfit
Set the breakeven when the position is in profit TPWCM_LevelProfit points;
LockOnlyLossPosPoint
Locking only those positions for which the current loss is less than the specified loss in points (indicated with a minus),
0 - disabled.
LockOnlyProfPosPoint
Locking only those positions for which the current profit is greater than the set profit in points,
0 - disabled.
Version 20.604 2020.06.04
The error of the SafetyPosMonitoring function when using Magic_Monitoring with several values is fixed.
Version 19.915 2019.09.15
Исправлена ошибка отображения StopOrderDeltaifUSEe в панели EAPADPRO
Version 19.903 2019.09.03
EAPADPRO v33
Change when using Max_Lot_Monitoring / Min_Lot_Monitoring and SafetyPosMonitoring.
Advisor takes into account Max_Lot_Monitoring / Min_Lot_Monitoring in its positions, opened by SAFETYLOCK.
Version 19.804 2019.08.04
EAPADPRO v31
Version 19.606 2019.06.09
- Update EAPADPRO v 28
- Added DynamicStopOrderDelta = dynamic distance parameter:
Allows you to set a different distance of pending order, depending on the lot of the protected position.
With DynamicStopOrderDelta >0: The Higher the lot, the closer the pending order distance!
With DynamicStopOrderDelta <0: The higher the lot, the further the pending order distance!
DynamicStopOrderDelta is set to a position with a volume of 1 lot.
For example:
With DynamicStopOrderDelta = 100:
If the lot (volume) of your position is 1 lot, then the StopOrderDeltaifUSEe distance will be = 100 points;
If the lot (volume) of your position is 0.1 lot, then the StopOrderDeltaifUSEe distance will be = 1000 points;
If the lot (volume) of your position will be 0.01 lot, then the StopOrderDeltaifUSEe distance will be = 10,000 points;
With DynamicStopOrderDelta = -100:
If the lot (volume) of your position is 1 lot, then the StopOrderDeltaifUSEe distance will be = 100 points;
If the lot (volume) of your position is 0.1 lot, then the StopOrderDeltaifUSEe distance will be = 10 points;
If the lot (volume) of your position is 0.01 lot, then the StopOrderDeltaifUSEe distance will be = 1 point;
Version 19.107 2019.01.07
- Update EAPADPRO v25;
- Additional languages added to the panel: Spanish, Portuguese (Brazil), German, Chinese, Japanese;
The translation was made using the GOOGLE Translator + MQL + Terminal site!
if you find an error in your language, please report it in messages. Thank!
- Increase the speed of the panel;
Version 18.991 2018.12.21
- Update EAPADPRO panel to v23 version
- Added a control unit and control the speed of the quotes and the speed of testing.
- Added block output table open deals and positions.
Version 18.966 2018.11.06
Update panel EAPAPDPRO v21
Added hints to external variables
Added variable ModifyOrdPend_onlytoOpenPrice -
true - the ability to modify a pending order only up to the opening price of the position (old version)
false - continue to modify the opening price of pending orders by price movement.
Version 18.830 2018.08.30
Update EAPADPRO v20
Version 18.718 2018.07.30
The functions Close_One_if_Safety_More_profitable and Close_One_if_Safety_Closed_In_Profit have been updated.
When using NumberofStopOrder> 1, the profit of SafetyLock positions is calculated from the amount of the profit of all positions according to the ticket of the main position.
The function Close_One_if_Safety_More_profitable is imenen.
Now the closing of the main position and SAFETYLOCK positions occurs only when the amount of profit of these positions is greater or equal to Close_One_if_Safety_More_profitable_Dollars (With NumberofStopOrder> 1)
To get the results of previous versions, set Close_One_if_Safety_More_profitable_Dollars = 0.
The function Close_One_if_Safety_Closed_In_Profit is changed.
Now the closing of the main position occurs only when the amount of profit of the closed positions SAFETYLOCK and the main position is greater than or equal to Close_One_if_Safety_Closed_In_Profit_Dollars.
All orders and positions of SAFETYLOCK are closed.
If both Close_One_if_Safety_More_profitable and Close_One_if_Safety_Closed_In_Profit functions are enabled,
then the total profit is calculated from the closed positions SAFETYLOCK and positions SAFETYLOCK, which are still open. (Actual for NumberofStopOrder> 1)
The profit amount of SAFETYLOCK must be greater than or equal to Close_One_if_Safety_More_profitable_Dollars + Close_One_if_Safety_Closed_In_Profit_Dollars., Than the main position.
Added function Close_One_if_Safety_Closed
If the position SAFETYLOCK was closed for any reason (manual close, takeprofit, trailing stop), then the main position will also be closed.
The variable StopOrderDeltaifReopen is added to the ReopenClosedSafetyOrders block
StopOrderDeltaifReopens - The distance to set the pending order SAFETYLOCK after reopening the order.
If StopOrderDeltaifReopens = 0, then the distance = StopOrderDeltaifUSEe (old version)
The price for setting a pending order will be calculated from the current price.
Version 18.6 2018.04.24
- Update for the information panel EAPADPRO v2.0;
- If the SPECIFID_Symbol_Monitoring parameter is not set and SymbolMonitoring = SPECIFID_SYMBOLs, then the EA monitors the currency pair it is attached to.
- Changed the conditions for closing Safety positions, if they are more profitable.
Close_One_if_Safety_Closed_In_Profit - close the original position if the SafetyLock position was closed with profit covering the current loss of the original position;
Close_One_if_Safety_Closed_In_Profit_Dollars - profit in USD to cover the original position;
Close_One_if_Safety_More_profitable - close the original position if the profitable SafetyLock position covers the current loss of the original position;
Close_One_if_Safety_More_profitable_Dollars - profit in USD to cover the original position;
Version 17.966 2017.11.10
Fixed error in Buy Stop order modification
Version 17.958 2017.11.01
Updated Remove_TAKEPROFIT_ofOriginalifStopsActive and Remove_STOPLOSS_ofOriginalifStopsActive.
Fixed an error than caused repeated modification of stop loss/take profit of the original position.
Updated the timer function. In case the timer does not start, the EA operates based on ticks.
Version 17.946 2017.10.19
Fixed an error related to the list of magic numbers.
SPECIFID_Symbol_Monitoring - added the ability to create a comma-separated list of symbols to be monitored.
Version 17.324 2017.04.10
- Added the Close_One_if_Safety_Closed_In_Profit parameter, which closes the original position, if the Safety position was closed in profit covering the current loss of the original position.
For example, Close_One_if_Safety_Closed_In_Profit=true MNLOT=2.
As soon as the LOCK triggers and the Safety position closes by take profit, the original position will be closed.
- Added the Close_One_if_Safety_More_profitable parameter, which closes the original position, if the Safety position is more profitable, covering the current loss of the original position.
For example, Close_One_if_Safety_More_profitable=true MNLOT=2.
As soon as the LOCK triggers and the Safety position is more profitable, both the Safety and the original positions will be closed.
- Added the ModifyOrdPend_STEP pending - trailing step for pending orders when the ModifyOrdPend function is enabled
- Added the MilliSecondsTimerForMonitoring parameter - the number of milliseconds of the algorithm execution (by default, 1000 = 1 second)
- The Magic_Monitoring parameter has been updated. It is now possible to specify a list of magic numbers (separated by a comma) to be monitored.
For example:
Magic_Monitoring= -1 means that all magic numbers will be monitored
Magic_Monitoring= 0 means that manual trades will be monitored
Magic_Monitoring= 555,777 means that magic numbers 555 and 777 will be monitored
- Added monitoring filtering by the Comment_Monitoring comment. This option filters deal for placing locks for positions with the comment matching Comment_Monitoring
For example:
Comment_Monitoring="" - monitors all trades, regardless of the comment
Comment_Monitoring="VirtualTRadePad" - monitors all trades with the VirtualTRadePad comment, even if the comments contain VirtualTRadePad-1 or VirtualTRadePadEXTRA or TickVirtualTRadePadEXTRA
- Added a breakeven function
MovingInWLUSE - transfer the position to breakeven;
LevelWLoss - transfer the stop loss to +LevelWLoss points;
LevelProfit - when the trade gains LevelProfit points of profit;
- Fixed the error with placing pending orders on their positions when the SafetyPosMonitoring is enabled and more than 1 position in different directions are present in the market.
- Fixed the error with Magic_Monitoring, when setting a Magic_Monitoring value other than "-1"
The EA made this error in such functions as: CloseOneifStopsActive, Remove_TAKEPROFIT_ofOriginalifStopsActive, Remove_STOPLOSS_ofOriginalifStopsActive
- Fixed the error with modification of Take Profit when using the ModifyOrdPend parameter
Version 17.212 2017.02.20
Improved EAPADPRO
- Added two options:
Remove_TAKEPROFIT_ofOriginalifStopsActive - remove the take profit of the original position, if the SafetyLock pending order was triggered;
Remove_STOPLOSS_ofOriginalifStopsActive - remove the stop loss of the original position, if the SafetyLock pending order was triggered;
It allows to "hard" lock two positions by removing the stop loss and take profit. It creates a "safe lock", which will not be unlocked if the original position was closed by its stop loss or take profit.
Version 17.123 2017.01.27
- Added the EAPADPRO information panel
Details on the panel in our blog: https://www.mql5.com/en/blogs/post/687140
Version 16.919 2016.10.11
Added two new options for filtering trades, where safety stop orders need to be placed
Min_Lot_Monitoring - minimum lot for the EA to monitor, if 0 - parameter is disabled;
Max_Lot_Monitoring - maximum lot for the EA to monitor, if 0 - parameter is disabled;
For example, you need to use the current SafetyLock EA for protecting positions which accumulated a large lot, such as after using martingale. The lot for which an opposite stop order should be placed = 0.16, at the same time the EA must not touch the positions less than 0.16. To do that, set the parameter to: Min_Lot_Monitoring =0.16;
For example, you need to lock all positions with lot sizes from 0.1 to 0.25, to do that, set the parameters to:
Min_Lot_Monitoring = 0.1;
Max_Lot_Monitoring = 0.25;
Added the SetMinStops variable:
In case of AutoSetMinLevel, the stop levels are reduced to the minimum possible levels, allowed on the server;
In case of ManualSet, user receives a message that the stop levels in the EA are less than the minimum allowed ones, and the EA stops operation.
Added the CloseSafetyPositionsifclosed variable:
Close SAFETY positions that have been activated, if the main position was closed.
Version 16.313 2016.03.16
Added variables:
ReopenClosedSafetyOrders - reopen the 'Safety' pending orders, if they were closed by a stop order, while the protected position is still open.
NumberofStopOrder - the number of pending orders placed for a position.
DistancefromStopOrders - the distance between the 'Safety' orders
CloseOneifStopsActive - Close the position if the 'Safety' pending orders was triggered
Version 16.213 2016.02.16
Added the parameters
SymbolMonitoring
SPECIFID_Symbol_Monitor
SymbolMonitoring = ALL_SYMBOL = Monitor all symbols, all trades on the account. If you placed the EA on 1 chart of any currency pair, then it will monitor every currency pair on the account;
SymbolMonitoring = ONLY_CURRENT_SYMBOL = Monitor only the current symbol. The EA will monitor and maintain only trades on the symbol the EA is set on;
SymbolMonitoring = SPECIFID_SYMBOL = Monitor only the trades on the symbol specified in SPECIFID_Symbol_Monitor. For example, EURUSD - then the EA will only maintain the trades on the EURUSD symbol;
Reviews about SafetyLOCK
Thanks for feedback!
Ir Moh Zainal Arifin
⭐⭐⭐⭐⭐
Ir Moh Zainal Arifin
excellent EA to use protect your capital. I am using this SafetyLock instead of Stop Loss and do something when reversal...
Joe Wolfen
⭐⭐⭐⭐⭐
Joe Wolfen
Good EA highly recommend, settings can be configured to suit your trading style. Takes time to backrest to get a settings to work with your trading strategy. This tool is important
Joe Wolfen
⭐⭐⭐⭐⭐
Joe Wolfen
Good EA highly recommend, settings can be configured to suit your trading style. Takes time to backrest to get a settings to work with your trading strategy. This tool is important
Stefan Constantinescu
⭐⭐⭐⭐⭐
Stefan Constantinescu 2023.05.24 15:12
This tool is very useful. Too bad it is not created for the MT5 platform
Maik Siebel
⭐⭐⭐⭐⭐
Maik Siebel 2022.10.02 12:47
One of the most important tools in my automated trading.
Luis Leal
⭐⭐⭐⭐⭐
Luis Leal 2021.10.13 22:18
I haven't enough experience yet with all functions, but IS A SERIOUS TOOL! If you know about lock and hedging /covering positions, you will test the cost difference between the stop loss and a well configured lock. I bet on the lock. It's all about RRR, this is the tool for you.
sidneif
⭐⭐⭐⭐⭐
sidneif
Excellent EA! It has functions for different types of strategy and works very well. Developer is very attentive and provides the necessary support. Congratulations!
Alexandre Jean Besnard
⭐⭐
Alexandre Jean Besnard 2020.12.29 20:22
Interesting idea ,but in fact it doesnt works , ICmarkets send me emails because they wanna ban my account if i use this ea .Tried several times , but the eea seems to send to much messages . *No ideas about the messages the server receive , i just have emails from the broker that will ban me for hyperactivity2020.12.29 20:47Hello. What message you have ? you would wonder what exactly the problem is. perhaps change the parameters.
Robert Torres Jr
Robert Torres Jr 2020.11.14 22:57
I would like to know how I can get some training on how to use this EA that I rented for the XAUUSD
C4ptAwesome
⭐⭐⭐⭐⭐
C4ptAwesome 2019.08.21 21:21
Absolutely great to secure your asset. Great manual and top developer!
eriva
⭐⭐⭐⭐⭐
eriva
I use many products from Vladislav, the utilities are exceptional even if they require a bit of patience to find the right settings based on their use. Each reviewed utility is used in my real account. Vladislav is a kind and helpful person for any help required. Great Vladislav !!
Cyranc
⭐⭐⭐⭐⭐
Cyranc
This EA is excellent, it can really save and protect the trade. Author is very helpful after a few months of trial, Safety Lock can really help to protect the positions However, sometimes the recovery zone will have problem in range market. may I request a parameter that can control the Max Hedge Cycle? Safety Lock is great, but sometimes the swing market will cause unlimited hedging orders and big max drawdown. I hope the hedging order number is under control. For example, if I set Max 3 Hedge orders, the original position is buy, then there will be max sell, buy, sell, no more. After that, Safety Lock will disable the pending order function. Is it possible to add this in next update? Safety Lock will become perfect if this para is included. Thanks in advance.
ericcheungtakyu
⭐⭐⭐⭐⭐
ericcheungtakyu 2018.02.06 16:36
useful and great EA. but it would be better if it can close the original trade when safetylock order SL
Mathews Achankunju
⭐⭐⭐⭐⭐
Mathews Achankunju 2018.01.28 18:46
Amazing product with all the features you will ever need and many more. It's a very reasonable price for such a useful and adaptable utility.
Fabio
⭐⭐⭐⭐⭐
Fabio
Very good EA and developer is very supportive of his client base. Highly recommended.
robertleecf
⭐⭐⭐⭐⭐
robertleecf 2017.11.11 01:4
Good and Very useful EA. Author is nice and helpful, willing to update the EA in time.
Yu Pang Chan
⭐⭐⭐⭐⭐
Yu Pang Chan
The author keeps reviewing and fixing any reported bugs in only a few days. Good EA.
Mike Panadar
⭐⭐⭐⭐⭐
Mike Panadar 2017.10.23 23:41
THIS ADVISER IS THE BEST FOR MONITORING AND THIS ADVISER OPEN OPPOSITE TRADE WHEN MARKET AGAINST ME, ANDRUS VERY GREAT SUPPORTING ME AND HELP ME UNTIL MY ISSUE RESOLVED, THANK YOU ANDRUSE FOR SUPPORTING AND HELP ME,
LUIZ CLAUDIO TRANNIN
⭐⭐⭐⭐⭐
LUIZ CLAUDIO TRANNIN 2017.06.19 22:43
Very good quality, safety lock installed and you can even hibernate like a bear, there will be no stop out.
Victor Epand
⭐⭐⭐⭐⭐
Victor Epand 2017.02.18 14:49
This EA can be useful for creating locked hedges. If you take a partial take profit of the original position before the safety position activates, the EA closes the old safety position and replaces it with a new one having the adjusted lot size.
burak Güçükdere
⭐⭐⭐⭐⭐
burak Güçükdere
Thrust me nothing can protect you better than this product. Every traders must have protection like this manuel or Auto not important everybody or every EA can make wrong chose. And youre Wrong chose protection is waiting 🙂
Comments
Do you have a question?
14 responses to “SafetyLOCK PRO Protect your positions by locking using the opening of opposite pending orders (HEDGE)”
Extra
Navigation durch Registerkarten
Verwandte Beiträge
CLP CloseIfProfitorLoss with Trailing. Control of the total profit or
Closing positions in MetaTrader upon reaching the total profit/loss with the profit trailing function. You can enable the Virtual stops (Separate Order), Calculating…
Swing strategy (Pendulum). Automatic opening of 2 opposite pending orders,
The model of the well-known strategy Pendulum (OCO orders) is the sequential opening of pending orders with an increased lot. The…
Partial Close and Trailing. Partial closing of positions on rollbacks
Partial Close and Trail – assistant EA. Closes a part of a position (Closes part of the lot) during rollback. EA …
Programming your strategy in 10 steps with Universal Expert Advisor
Description The X is a builder of trading strategies. We created a Universal Expert Advisor that has all the most interesting and…
Tick Hamster Automatic trading robot. Nothing extra!
Expert with automatic optimization of all parameters for any trading symbol in MetaTrader. A trading EA that requires no settings!…
VirtualTradePad (VTP) Handelspanel. Trade Pad für One-Click-Trading über Chart und
VirtualTradePad oder VTP – Bedienfeld für den Handel mit einem Klick in MetaTrader-Terminals. Das Programm für Scalping und manuellen Handel auf…
The X and The xCustomEA: Testing and Optimization
Description The X and The xCustomEA are two standout Expert Advisors (EAs) in the Forex trading community, gaining widespread popularity over…
Duplicator – Duplication of signals and deals/positions/orders on the MetaTrader
The Expert Advisor repeats (duplicate) trades and positions or signals a preset number of times on your account MetaTrader. It copies all deals opened…
Close Minus by Plus, Closing unprofitable positions by searching and
Closing unprofitable positions by searching and closing profitable positions This assistant looks for, among all positions, in the terminal the most…
Extra Report Pad – Trader-Tagebuch. Analysiert professionell Ihr Handelskonto. MyFxBook
Extra Report Pad – professionelle Lösung zur Analyse Ihres Handelskontos Heutzutage ist es unerlässlich, gleichzeitig für mehrere Währungspaare zu handeln. Aber…
Assistant – das beste kostenlose Trading-Panel zur Unterstützung von Positionen
Automatische Einstellung von Stop Loss, Take Profit, Trailing Stop, Breakeven-Leveln, Aktivierung virtueller Stops. Exp Assistant hilft Ihnen, die Wartung Ihrer Positionen…
Copylot – Forex-Kopierer für MetaTrader. Kopierer zwischen Terminals
Handelskopierer für MetaTrader. Er kopiert Forex-Handel, Positionen und Aufträge von jedem Konto. Es ist einer der besten Handelskopierer MT4-MT4, MT5-MT4 für die…
Averager. Durchschnittsbildung von Handelspositionen. Eröffnung von Geschäften gegen den Trend
Durchschnittsbildung von Positionen. Eröffnung zusätzlicher Positionen im Trend und gegen den Trend mit der Funktion des allgemeinen Trailing Stops des…
Trade Report of TickSniper and the best advisors from Expforex
Description We have summed the summary and detailed trading results of our experts TickSniper, Good Santa, Tick Hamster, The X, on our real trading accounts. Trade…
This post is also available in: English Українська Portuguese Español Deutsch Chinese Русский Français Italiano Türkçe 日本語 한국어
Leave a Reply