CAP Zone Recovery User Guide (Input Parameters)

20 June 2017, 09:21
Mohammad Ali
0
939

CAP Zone Recovery EA User Guide

3.0) Input Parameters


Read this section to understand how to use the EA with your MT4. This section is aimed to give you some information regarding using the EA and it features and settings. The CAP Zone Recovery Expert Advisor needs to be placed at the chart of the symbol that you wish to trade.

 

RECOVERY ZONE SETTING


−     Hedge Order Type: Order type for hedge order. You can select Pending order or Instant Order.

Example- 

1. RecoveryGAP=300 and Hedge Order Type=Pending order. So you open any initial trade BUY, EA open SELLSTOP pending order 300 points below from your initial trade.

2. RecoveryGAP=300 and Hedge Order Type=Instant. So you open any initial trade like BUY, and price go down 300 points then EA open a sell order.

−     TakeProfit Type: Select TakeProfit type from any of two (Both initial and hedge TP type) –

    1. In Points: Takeprofit in points.
    2. In Currency:  Takeprofit in currency. 

−     TakeProfit For Initial (Points/Currency): Value of TakeProfit. When you select TP Type- In Points, this value considers as points but when your TP Type- In Currency then this value consider as currency.  Zero mean no TakeProfit.

−     TakeProfit For Hedge (Points/Currency): Same as above.  You need to set both Takeproft value for initial trade and hedge trade.

−     MaxHedgeOrder: Max. number of trades to be opened using the Zone Recovery Algorithm. Zero mean unlimited orders open depend on your deposit.

−     Magic Number: A unique identification code to be used for all trades opened by this robot.



RECOVERY GAP SETTING


−     Recovery GAP Type: Recovery GAP type must be two type-

1. Fix GAP

2. Dynamic GAP.

−     Fix Recovery GAP: Distance for Recovery level in points (away from the initial trade, level where the hedge trades will be opened for recovering loss).

−     Number of Candle (H/L) For DynamicGAPNumber of candle (High/Low) to calculate dynamic zone level.

−     Max Value For DynamicGAP: Same as above.  You need to set both Takeproft value for initial trade and hedge trade.

−     Minimum Value For DynamicGAP: Max. number of trades to be opened using the Zone Recovery Algorithm. Zero mean unlimited orders open depend on your deposit.



LOTS SETTING


−     Initial Lots: Lots size for initial trade. These options will affect ONLY the Initial trade type- Auto Trading / Custom PlugIn / Instant Order.

Note: When using with External Trade/EA you don’t have to modify Lot Size. The EA will automatically read the lot size of the active trades

−     Lot Type (For Hedge): Lots Type for hedge order.

1.    Multiple: Lots size will be multiple from previous order.

2.    Custom: Lots size will be custom, define by user.

3.    AddLot: Lots size will be adding.

−     Multiple Lots (For Hedge): Multiple lot sizing (compared to last opened trade).

−     Add Lots (For Hedge): Value of Add Lots. 

Example: EA want to open a sell hedge order then lots calculation will be (Total Buys Lots - Total Sell Lots = Result Lots+Add Lots).

−     Custom Lots (For Hedge): Set Custom lots size for every hedge trade. Lots size will be separate by “;”.


INITIAL TRADE SETTING


−     Initial Trade Type: This option presents you the following options regarding how the first trade opens. Decide you first initial trade type.


1.    External Manual Trade: Initial trade gets open by manual. Under this method the EA will automatically take control of trades opened manually.

−     Place the CAP Zone Recovery EA on the instrument to be traded.

−     Select External Manual Trade under Initial Trade Type.

−     DO NOT OPEN MORE THAN ONE TRADES ON THE SAME INSTRUMENT.

−     Open the trade (Buy/Sell/Pending Order) manually directly through the MT4 or MT4 mobile.


2.    External EA Trade: Under this method the EA will automatically take control of trades opened by an external EA.

−     Place both the Loss Recovery Trader EA and the External EA on separate charts of the instrument to be traded.

−     Select External EA Trade under Initial Trade Type.

−     Ensure that both EAs are using the same Magic Number.

−     THE EXTERNAL EA SHOULD NOT OPEN MORE THAN ONE TRADES ON THE SAME INSTRUMENT.

−     The external EA should not close trades once the recovery algorithm begins

−     Make sure your external EA shouldn’t interfere any trade that zone recovery opened.

 

3.    Auto Trading: EA open initial trade by full auto base internal trading strategy.

4.    Custom PlugIn: EA open initial trade base on custom plugin. If anyone have own custom trading logic for initial trade, then we can develop PlugIn for this EA

5.    Instant Order: EA Open initial trade by instant (BUY/SELL/PENDING ORDER). In case you want to place more than one manual trades on the same instrument you can place trade with this method.

−     Place the CAP Zone Recovery EA on the chart of the symbol your wish to trade.

−     Select Instant Order under Initial Trade Type.

−     Then select Instant trade type (BUY/SELL/PENDING ORDER) under Instant Trade Type.

−     If you select a Pending Order (Buy Stop/Sell Stop/Buy Limit/Sell Limit) you can enter the price in the Pending Order Price.



−     Auto Trading: Select any of auto trading strategy.

−     Instant Trade Type: Select instant trade type (BUY/SELL/PENDING ORDER).

−     Pending Order Price: If your Instant Trade Type-Pending Order (Buy Stop/Sell Stop/Buy Limit/Sell Limit) you can enter the price in the Pending Order Price.

−     ContinuousTrade: It is only work when you select INITIAL TRADE TYPE=INSTANT ORDER.

Example- Your setting is INITIAL TRADE TYPE=INSTANT ORDER, INSTANT TRADE TYPE=BUY and CONTINUOUSTRADE=TRUE. So when you attach EA on chart it open initial trade BUY, when your trade close it will open BUY again and again. But if you set CONTINUOUSTRADE=FALSE. Then EA only trade for first time only. Then stop until remove and attach EA again.

−     ReverseSignals: It is only work when you select INITIAL TRADE TYPE=AUTO TRADING. If trade EA will reverse all signal of auto trading.

Example- Your setting is INITIAL TRADE TYPE=AUTO TRADING, AUTO TRADING= STRATEGY_1 (BOLLINGER) and REVERSESIGNALS=FALSE. By Default, In Bollinger band strategy Open BUY when price touch UpperBand, but if you want SELL then just set ReverseSignals=false. 



TWO-STAGE RECOVERY REGION

 

Change the recovery zone region used after a given number of trades. The purpose to avoid ranging market. This option when enabled will changed the recovery zone region used after a given number of trades. The purpose of this is to force a recovery to finish by reducing the region or increase the region to decrease the lots risk in the event recovery was not achieved yet.


−     Add Recovery GAP (+/-): 0- Mean Disabled: Set the value of points that want to add/minus from your original RecoveryGAP to make new RecoveryGAP. If you want add new GAP with your previous RecoveryGAP, then set positive value (like: 100). Or if you want minus new GAP with your previous RecoveryGAP, then set negative value (like: -100).

−     Number Of Order After Change New GAP: Number of trades, after recovery gap is changed.

−     Max/Min. Recovery GAP: Maximum/Minimum Recovery GAP. If your Add Recovery value is positive value, then this is considering as Maximum value and your Add Recovery value is negative value then this is considering as Minimum value.

 

Example- Your setting is Fix Recovery GAP=200Add Recovery GAP=100Number of Order After change New GAP=3, Max/Min. Recovery GAP = 500.

 

You first trade is BUY then 200 points loss, EA open hedge trade SELL, after open 3 trade then next hedge trade will be open FixRecoverGAP+AddRecoveryGAP (200+100) with new GAP 300 points. Your new FixRecoveryGAP now 300 points. Continuous open every hedge trade with new recovery gap value and after 3 trade  EA repeat above calculation to get new Recovery value (FixRecoverGAP+AddRecoveryGAP) and your new GAP now 300+100= 400. EA continues do this every 3 trades and add value with previous used recovery value. But remember new value will not above Max/Min. Recovery GAP.  


LOSS SETTING


−     Loss Taking Policy: Select any of loss taking policy-

1.    Disabled: EA will not close any trade by loss.

2.    Place Stoploss: if True. EA set fix StopLoss if MaxHedgeOrder trade reach. Example you set MaxHedgeOrder=8. If total trade 8 then EA will not open any hedge trade. So EA set fix StopLoss on loss trade side.

3.    Close Trade By Trade: if True. EA close latest order step by step. Example you set MaxHedgeOrder=8. If total trade 8 then EA will not open any hedge trade. In this situation, if your latest trade in loss, EA close the latest trade.

−     SetSLForError: If any error and EA unable to open hedge that EA set StopLoss on loss trade side.

−     StopLoss (In Points): Fix Stop Loss in points. It works when your Loss Traking Policy=Place Stoploss.



GRID SETTING

 

It is possible to have the EA open multiple trades in the same direction (Apply Grid) prior to having the recovery start. This can be done to give the initial trade more chance of ending up in profit and prevent the recovery starting. Similarly, you can link the Loss Recovery EA with another external EA or manual trade that has opened multiple trades in the same direction.

The average open price of all the grid trades will be calculated for profit closing and the last opened price will be used as the basis level of the Recovery Zone Range placing hedge orders.

−     NumberOfGrids: Set number of Grid orders. 0 (zero)- Mean Disabled.

−     Grid GAP: After how many loosing pips a new grid trade opens.

−     Grid Lots Multiplier: How bigger each trade will be relative to its previous trade.

 

Note - All grid trade TP will be fellow value of TakeProfit For Initial. Combined Take Profit in points/currency. It is calculated based on the average opened price.

 


BREAK-EVENT SETTING

 

−     Break Even On: Enables Break Event. Break event work both initial and hedge mode.

−     Break Start: Profit (distance from entry price to current price, in points) when the breakeven is activated.

−     Break Step: Distance from entry price to which the stop loss is moved.

−     Disable BE: If True, BE only work initial mode.

 

TRAILING-STOP SETTING

−     Trailing On: Enables Trailing Stop. Trailing stop work both initial and hedge mode.

−     Trailing Stop: Points to be won for the Trailing Stop to be activated.

−     Trailing Step: Step (in points) of trailing stop.

−     Disable TR: If True, trailing only work initial mode.


TIME CONFIGURATIONS

 

These settings will apply time restrictions on when the initial trade opened by Auto Trading or Instant trade.

The time used is the time your broker uses. Once the first trade has applied the time opening restrictions do not apply on hedge trade.

 

     GMT Mode: Select any of GMT offset mode of the broker server time.

1.    Auto GMT (not for tester!): EA will set auto your broker GMT shift. It will not work in backtesting.

2.    Manual GMT: Set your broker GMT shift manually. On back test always use Manual GMT.

     Manual GMT offset: Manual GMT correction.

     Trade Asian: Asian Time (True/False).

     Asian Time: Set Asian Time (Default 22:00 - 09:00).

     Trade Europe: Europe Time (True/False).

     Trade Europe Time: Set Europe Time (Default 08:00 - 17:30).

     Trade America: America Time (True/False).

     Trade America Time: Set America Time (Default 13:00 - 22:00).


Please set time zone like this format {Start time – End time} 08:00 – 17:30. Do change format.


EXTERNAL EA CONFIGURATIONS


 

These settings will apply time restrictions on when the initial trade opened by Auto Trading or Instant trade.

The time used is the time your broker uses. Once the first trade has applied the time opening restrictions do not apply on hedge trade.

 

     External EA's Work: How CAP Zone Recovery EA recognize your EA trade.

1.    With MagicNumber:  EA will recognize your trade by MagicNumber.

2.    With Comment: EA will recognize your trade by comment. If you don’t know what magic number your EA use, then you can use this options.

     External EA's Magic Number: Put your External EA’s Magic number.

     External EA's Comment: Put your EA’s comment. Comment is Non-case sensitive.

 

 

Disabling External EA

This option allows disabling the operations of the External EA once the recovery has started to prevent any conflicts between them.

a. Save the templates

You would need to create 2 templates of the chart where the External EA is running.

1.    Create a template with blank chart and example name it “ea_remove.tlp”.

2.    Create another template with your EA with full setting. example name it “ea_attach.tlp”.

 

b. Get the Chart ID

You need to identify the chart ID where the external EA is running.

This link downloads the script MT4 Version  |  MT5 Version, which you need to install in the script folder will give you the chart id of the other chart once you put it on a chart.

c. Adjust the Settings

 

     Change External EA's Template:  Set to True to enable this feature.

     External Chart ID: The ID of the chart where the other EA runs (given to you by the script).

     Remove EA Template Name: The name of the template where the external EA is inactive. (ex. “ea_remove.tlp”).

     Attach EA Template Name: The name of the template where the external EA is active. (ex. “ea_attach.tlp”).

 

Once the Recovery begins the remove EA template is applied and the External EA gets removed. Once 0 trades are active the Before template is applied and it becomes active again.


BASIC CONFIGURATIONS



     EmailAlert: Send mail when any new trade open.

     UseNoMagicNumber: If true, EA not calculate any magic number.

     Slippage: Maximum Slippage EA will be use.

     GlobalMaxTrade: Set Maximum open initial trade per account. It is only work when your Initial trade type=AutoTrading.

     Show Back Test Report: If true, EA show advanced backtest result on Deshboard

     HedgeTradeComment: Comment for open hedge trade.

     GridTradeComment: Comment for open grid trade.





Purchase

Mt4 version -  https://goo.gl/X10Ajd

MT5 version -  https://goo.gl/nISxEg



Share it with friends: