EA Hedge All and Close All
Hedge EA All and Close All – it is the assistant traders to trade, hedge (locks) all open positions on all trading instruments at a specified time or by pressing a button on the screen.
For example, open two orders
EURUSD buy 0.02
EURUSD sell 0.04
Common position on EURUSD: buy (0.02) - sell (0.04) = sell (0.02)
The EA will open a buy hedge (0.02) at "% Hegde" = 100.
Then the common position on the EURUSD will be hedged (locking): buy(0.02) - sell (0.04) + buy(0.02) = 0.00
If "% Hegde " = 50, the EA will open a buy hedge (0.01).
In this case, the total position on EURUSD will be hedged (locked) partially: buy(0.02) - sell (0.04) + buy (0.01) = 0.01 (sell)
The Expert Advisor allows hedging risks when necessary.
If the "Monitoring..." button is pressed, the EA continuously monitors open orders. If one order is closed or opened by the new order, the EA will recalculate the warrant hedge.
Performs the following functions
- Hedges opens
- Hedges closes
- Closes all positions (buy, sell)
- Deletes all pending orders (buy limit, sell limit, buy stop, sell stop)
- Monitotoring... - enables continuous monitoring of orders, if necessary, hedge orders will be opened
- Open Hedge - the opening of the hedges now
- Close Hedge - the closure of the hedges
- Close All Positions - closing all open positions
- Delete Orders - delete all pending orders
When to use
- Before the weekend
- Before the release of the news
- If you need to leave the computer
- Periods of uncertainty in the market
- Use Time Open Hedge - enable the opening of the hedge
- Time Open - time of the opening of the hedges (if the parametr Use Time Open Hedge is on)
- UseEquity for Opening Hedge - use the value of equity to open a hedge
- Equity > - open a hedge when the equity are greater than this value
- Equity < - open a hedge if the equity are less than this value
- Slippage - slippage
- Test Orders - open test orders at the start (false/true)
- Buttons corner - of the screen where there are buttons
- Color buttons - set color buttons
- Buttons text color - set button text color
Enable "Use time Open Hedge" - on and set the opening time of the hedge so that the EA opens the hedge at a set time, for example, before closing the market.
The vertical line can be moved to change the opening time of the Hedge.
The EA also provides the test mode. In test mode, a few orders are opened during the launch.
2. Added ability to open Hedge by equity value.
3. Updated the displayed information about opening a Hedge.
2. Added the ability to partially hedge (lock) positions.
3. Added show on display of the specified opening time of the Hedge on the chart.
4. Added a vertical line that allows you to change the opening time of the Hedge.