ManHedger User Guide & Trial

ManHedger User Guide & Trial

2 May 2024, 23:25
Peter Mueller
0
154


HOW TO TEST THE MANHEDGER



  1. Download Demo Version

  2. Copy the downloaded mql5/ex4 file 

  3. Open the MetaTrader Terminal

  4. Click "File" in the up left corner

  5. Click "Open Data Folder"

  6. Select The MQL5/MQL4 folder 

  7. Paste the mql5/ex4 file in the Experts Folder

  8. Refresh the Navigator in the terminal and you should see the EA in the Expert Advisors folder.

The Demo can only be used with the following symbols : AUDUSD, ADA,INTC,US30. If applying it to any of these securities is not allowed, please contact me.






HOW TO SET UP



  1. The AccountBalance should not be 0. The EA uses a lot of calculations based on the percentage of your accountbalance. The tool can't be initialised if the balance is 0.
  2. The Account should be a hedging account. If hedging is not allowed, neither hedging nor zone recovery strategies can be started.
  3. Algo Trading should be allowed before applying the utility to the chart.

 


INPUT PARAMETERS

  1. Leverage (only for MT4): the leverage of the current symbol. It will be used to calculate the margin needed for opening trades with X lots.
  2. CanHedge (only for MT4): the trader can select wether hedging is allowed on the account. These two parameters can be grabbed by the software on MT5.
  3. GridMagicNumber: The Magic Number that will be used for Grid Strategies.
  4. ZoneRecoveryMagicNumber: The Magic Number that will be used for Zone Recovery strategies.
  5. HedgeMagicNumber: The Magic Number that will be used for Hedging strategies.
  6. HedgeComment: The comment of the trades/orders opened by the Hedge strategy.
  7. GridComment:  The comment of the trades/orders opened by the Grid strategy.
  8. ZoneRecoveryComment: The comment of the trades/orders opened by the Zone Recovery strategy.
  9. ShortColor: The color used for the displayal of stoplosses/sell trades on the chart. (Can be seen on the screenshot)
  10. LongColor: The color used for the displayal of takeprofits/buy trades on the chart. (Can be seen on the screenshot)
  11. HardStopLossPoints: If this parameter is not 0 the Grid and Zone recovery strategies will protect the trades with a hard stoploss beyond the calculated stop level. This can be used for protection against server/internet/power failures. Normally the trades will close out before reaching this level. Setting this level too thight may result in unprecedented losses. If this parameter is 0 no Hard stoploss will be used.





TRADE MODE


  • 1: Direction Button: This button allows the trader to choose between going long or short. Clicking it changes the trade direction, toggling between "long" and "short". When 'short' is selected, the corresponding button will display "Open Sell".
  • 2: Entry Price: This parameter allows the trader to define the entry price for the trade.
  • 3: Volume: In this section, the trader can specify the lot size of the trade or order they wish to enter. The first selection box enables the trader to choose the method for calculating the trade size. Selecting "Vol:" allows setting the Volume/Margin used for the trade. Choosing "Risk:" or "Gain:" enables specifying the desired amount to risk or gain from the trade. With the second selection box, the trader can further refine the calculation method. For example, selecting "Risk:" and "Balance %" allows specifying the risk as a percentage of the balance. Choosing "Gain:" and "In Money" allows setting a specific monetary gain, such as $15. Opting for "Vol:" and "In Money" enables specifying the margin used for the trade.

 

  • 4: Stop Loss: Here the trader can set the stoploss of the trade/order. 
  • 5: Take Profit: Here the user can set the takeprofit of the trade/order. Both Stoploss and Takeprofit can be specified in 1: The Level where the position needs to be closed 2: In the percentage of the Entryprice 3: in Points.

  • 6: Magic: Trader can set the Magic Number of the Trade/Order.
  • 7: Comment: Trader can set the Comment of the Trade/Order.
  • 8: Trailing Stop: A trailing stop can be set by clicking this button. If "TrailingStop on" is displayed the stoploss of the trade will automatically change whenever the price moves in favor of the trade.
  • 9: RiskReward: Clicking this button will fixate the current Risk/Reward ratio. Changing the SL or the TP after the RiskReward is on will change the other parameter accordingly.
  • 10: Display on Chart: This button will create a visual representation on the chart. The buttons are drag-enabled. Sometimes the correct representation of the parameters in the dialog is not possible, in this case the trade will be entered based on the displayed Trading box. (The EA attempts to synchronise the dialog and the trading box).

  • 11: Open Buy/Open Sell Button: With this button the user can enter the trade/place the order, with the parameters specified above. If the Advanced Panel is active the advanced parameters (partial TP and SL, auto breakeven) will also be taken into account, if the panel is not active the trade won't have any further parameters.
  • 12: Advanced: With this button the trader can activate/deactivate the Advanced Panel which allows further configurations of the trade: Partial Takeprofits, Partial StopLosses and automatic Break Even.

  • The trader can set the calculation method just as with the Takeprofit and Stoploss. For partials the only calculation methods allowed are "in Points" and "in %" the BreakEven can be set as level also. The first column is responsible for the distance/level at which the partial closing will happen. The second column is responsible for the volume that will be closed. This can only be set in Lots. While the Advanced Panel is active the only Volume calculation method allowed is "Vol:", "Gain:" and "Risk:" are disabled.
  • 1: Partial TakeProfits: The trader can activate partial takeprofits with a valid volume and distance by clicking the responsible radiobutton. The sum of the activated partial takeprofits volume must be less than the original volume of the trade.
  • 2: Partial StopLoss: The trader can activate partial stoplosses with valid volume and distance by clicking the responsible radiobutton. The sum of the activated partial stoplosses volume must be less than the original volume of the trade.
  • 3: Automatic BreakEven: Auto BreakEven can be activated/deactivated by clicking the "Auto BreakEven off" Button. The BreakEven can be set in level, in the percentage of the Entryprice or in points.




ZONE RECOVERY


What is a Zone Recovery strategy?

  • 1: MaxOrderCount: This label displays the maximum amount of trades the strategy can take. This parameter has to be greater than 1 to be able to run the strategy. The maximum order count can not be set by the trader, but it is calculated based on the parameters of the strategy. If the maxordercount is 2 for example, it means the strategy can take two trades: the first in the direction where the price moved and a second hedging trade. If it is 3, 2 hedging trade could be made. (This value usually can be increased, by increasing Risk and/or Volume).
  • 2: StartPrice: This is the parameter where the strategy would start, if this price is reached the buy and sell stop orders will be placed. 
  • 3: Range: The Range sets the Takeprofit level of the Buy/Sell trades. The Takeprofit of the buy trades will be the Startprice+Range. The Takeprofit of the sell trades will be the StartPrice-Range.
  • 4: BuyPrice: The level at which the Zone Recovery strategy will enter long trades. 
  • 5: SellPrice: The level at which the Zone Recovery strategy will enter short trades.
  • 6: VolCap: The total allowed volume for the strategy. This does not mean the volume of the first trade, but if the MaxOrdercount is 3 it would mean the the sum of the volumes of the 3 trades(1 starting and 2 hedging). This can be given in monetary amount (Margin used) in lots or in percentage of the balance. 
  • 7: Gain: The amount the trader would like to make on the strategy. The volumes of the trades will be calculated, so that the trades can close out with this amount of profits at the end of the Range.(Even if it's the first trade or already a hedging trade)
  • 8: Risk: The amount the trader is willing to lose on the strategy. The trader can set this as an "ideal" parameter so that it will be at the next hedging level after entering the last trade, by filling out every information, leaving this textbox blank and hitting enter. (This strategy usually has a huge Risk:Reward ratio. A 15:1 or above Risk:Reward ratio is completely reasonable for this strategy.)
  • 9: Run Strategy: Clicking this button will run the strategy if every parameter is filled out. This button then changes to "Stop Strategy" with which the user can stop the strategy any time (closing out all the trades and deleting all order made by the EA).
  • 10: Display on Chart: With this button a visualisation of the strategy is possible.

  • 11: This Selectionbox allows the user to decide what the EA should do after it closes out with profits. If the strategy loses it'll immediately stop. There are 3 options: 1: Stop at Close: If this is selected, the EA will stop the strategy after it hit the profit target. 2: Keep Trading: The EA runs the strategy again, with the same parameters except for the startprice which will be the current ask price. Buy and Sell orders will be placed immediately. 3: Status quo: The EA will run the strategy again, with exactly the same parameters, even the startprice is the same.




GRID MODE


What is a Grid Strategy?


  • 1: DirectionBox: Here the Direction of the Grid can be selected. There are 3 options to choose from. 1: Long/Short. A buy limit and a sell limit will be placed one OrderDistance (Range/Density) below/above the Startprice. If the price goes down and reaches the buy order, the EA will delete the sell order and activate the long grid below the Startprice. If the price reaches the sell level first, the buy order will be deleted and the sell grid will be activated above the Startprice. 2: Long only. A buy trade is opened at the Startprice activating the long grid below the Startprice. 3: Short only. A sell trade is opened at the Startprice activating the short grid above the Startprice.
  • 2: Startprice: This is where the strategy will start. If this level is reached, the EA will enter trades/open orders. 
  • 3: Range: This parameter is the precedented range where the user thinks the price will not break out of. The last order in the grid will be entered at the end of the Range (Startprice-Range for buy trades, Startprice+Range for sell trades)
  • 4: Volume: The volume of the strategy can be set with two different methods, using the first selectionbox. 1: Start: The user can set the starting volume of the strategy. This will be the volume used for the first trade. 2: Cap: The user can set the total volume used by the strategy. The EA will calculate the size of each trade and the sum will be equal to this value. Both ways the user can specify wether he'd like to use lots or the calculated margin needed for running the strategy.

           

  • 5: Gain: The amount the user would like to make on the strategy.
  • 6: Risk: The amount the user is willing to risk on the strategy. If every other parameter is filled out and the user hits enter the EA calculates an "ideal" Risk amount exactly one OrderDistance (Range/Density) below/above the Range, so the strategy will close out with a loss, where the next order would take place. (The Risk/Reward ratio of these strategies is usually above 1:10)
  • 7: Volstep: Here the user can define the difference or the ratio between the volume of the orders in the grid. The user can choose from 2 options. 1: Multiply: The Volstep parameter would be the multiplication of the volumes in the grid. If for example the value is 1.2 and the first order was 0.1 lots, the second order would be 0.12 lots. 2: Addition: The Volstep defines the difference between the volumes in the grid. If for example the value of this parameter is 0.05 and the size of the first order was 0.1 lots the second order  would be 0.15 lots.

  • 8: Density: Defines the amount of orders to be taken in the grid. 
  • 9: Run Button: Runs the strategy with the current parameters (if the parameters are valid). The text will change to "Stop Strategy" and this button will enable the trader to stop the strategy any time, closing out all open trades and delete all order made by the strategy. If the user changes the risk or the gain while the strategy is running the text will change to "Set Gain" or "Set Risk" and the trader can set the risk or the gain even when the strategy is running. 
  • 10: Display on chart: The trader can get a visual representation of the strategy using this button. If the strategy is running both SL Level (where the losses of the strategy would reach the risk) and TP Level (where the profits would reach the gain. This level is floating, with each new order reached in the grid it will get closer to the current price.) If everything is filled out the SL level is visible even before running the strategy.
  • 11: This Selectionbox allows the trader to decide what the EA should do after it closes out with profits. (if the strategy loses it'll immediately stop) There are 3 options: 1: Stop at Close: if this is selected, the EA will stop the strategy after it hit the profit target. 2: Keep Trading: The EA runs the strategy again, with the same parameters except for the startprice which will be the current ask price. 3: Status quo: The EA will run the strategy again, with exactly the same parameters, even the startprice is the same.







MANAGER MODE


This mode enables traders to manage orders and trades with specific properties, protect their equity & more

  • 1: Pool Selection: The trader can select the pool of trades/orders to be affected. To select the type of trades/orders the trader has to click the radiobutton and if the corresponding radiobutton is active, the type is selected. In the example above the buy and sell trades are selected, buy limit, buy stop, sell limit, sell stop are not selected.
  • 2: Profit above: Select trades that have a floating profit above the specified amount.
  • 3: Loss below: Select trades that have a floating loss below the specified amount.
  • 4: Magic Number: Select the trades & orders with the specified Magic Number.
  • 5: Symbol: Select trades & orders with the specified Symbol.
  • 6: Comment: Select trades & orders with the specified Comment.

The attributes selected have an and connection. This means that if the Symbol, Magic, Comment are all selected, the trades/orders with the given Magic and Comment and Symbol are selected. In the example above the selected pool is: open trades which have 0 as Magic Number and their Symbol is "EURUSD". 

  • 7: Close button: With this button the trader can close/delete all the trades/orders selected with the radiobuttons, with the specified attributes.
  • 8: Move SL to BreakEven: With this button the trader can move the stoploss of the selected trades from the trading pool with the specified attributes.
  • 9: Cut Loss: If this is activated, the EA will function as an equity protector. Whenever the drawdown limit specified by the trader is reached, all trades will be closed and all orders will be deleted.
  • 10: Win Close: If this is activated, the EA will close all trades and delete all pending orders when the floating profits of the trades reach the specified level.

Cut Loss and Win Close can be specified in monetary amount or in the percentage of the balance.




HEDGE MODE


What is a hedging strategy?



  • 1: Buy Level: The strategy will open a buy trade at this level.
  • 2: Sell Level: The strategy will open a sell trade at this level.
  • 3: Volume: The trader can specify the size of the buy and sell order/trade.
  • 4: Takeprofit: The takeprofit of the buy and sell orders can be specified here. If the price goes above the buy level with this amount, the buy trade will be closed closing out a part of the hedging sell trade (if it exists). If the price goes this much in the direction of a sell trade in the hedging batch, the sell trade will be closed out with a part of the hedging buy trade.
  • 5: Gain/Lot (In Money): The trader can specify how much money should be made when closing out a sell or a buy trade at the takeprofit. The EA will try to reach this goal and will close out parts of the unprofitable trades in the hedging batch. In the example above if there is both a sell and a buy trade open both with 0.15 lots (48.12$ of free margin is needed to open 0.15 lots) and the sell trade reaches it's goal of 64393-548.6 = 63845 the 0.15 lot sell trade would be closed out, with some amount of the buy trade also, to realise a profit of 0.15*10 = 1.5$. The buy trade remains open with the remaining volume. If there is no sell volume remaining (the previous sell trade was the last sell trade in the hedging batch) the strategy will enter "Squeezing" mode, creating a new pending sell stop order.
  • 6: Stop at Gain: The trader can specify the amount of money to be made on the strategy. If this value is 0 the strategy will keep running. If it is not 0 the strategy will stop
  • 7: Accumulated Profits label: Here the trader can see the amount of profits realised with the currently running strategy. This does not include the drawdown and the floating loss of the strategy (if there is any).
  • 8: Run/Stop button: With this button the trader can run the strategy with the above specified parameters. If a strategy is running this button will turn to "Stop Strategy" enabling the trader to stop the strategy any time. If any parameter is changed in the panel, while the strategy is running, the trader has the opportunity to change this parameter of the running strategy using this button.
  • 9: Display on Chart: With this button the trader can get a visual representation of the strategy on the chart. 
  • 10: The trader has the opportunity to add trades/orders with a given order ticket to the Hedging strategy's batch. This allows traders to add trades with huge drawdowns to recover or add more dynamic to the strategy if it is stuck. In order to do this, the ticket of the order/trade has to be entered in the textbox and the "Add to Strategy's batch" button has to be clicked. (This will print out all the trades in the strategy's batch in the experts tab).
  • 11: Build From the Inside: The trader can decide to build a new pair of hedging trades inside of the current sell and buy price. This can be useful if the strategy is stuck between the last 2 trades for too long. When building from the inside, the trader automatically changes the orderdistance to the distance used between buy and sell levels to build from the inside. This orderdistance will be used for squeezing the Hedge: Whenever a trade closes out with a profit, a new stop order will be created with the orderdistance above/below the price. This order is floating, working like a trailing stop loss: whenever the price moves in the other direction, away from this order, the order will follow the price with this distance.


My advice for using the product:

  • If one wants to see the parameters of a currently running strategy selecting the corresponding layout, will display every information: If a Hedge strategy is running, clicking Hedge in the selectionbox next to "Mode:" would display the parameters of the strategy in the panel.
  • When interpreting zone recovery or grid strategies, it is advisable to set a risk much higher than the gain, with a recommended Risk-Reward ratio of at least 15:1.
  • When changing the gain or risk of a running strategy, it is not recommended to set a much higher gain or a much lower risk, as it may have negative effects on the well-calculated strategies.
  • I do not recommend running zone recovery and grid strategies at the same time on the same security.
  • Setting the EA for the same securities multiple times with the same magic numbers may result in unexpected errors. (The EA distinguishes other EAs with the help of symbols and magic numbers).
  • I recommend using the EA for securities which have the account currency as either the base or margin currency.
  • With price changing the size of a lot in your base currency may change, re-enter the volume if you are calculating in monetary amount.
  • Don't remove Expert/close chart/close MetaTrader, when a strategy is running.
  • If the Balance is 0 the Expert won't work.



























Share it with friends: