Auftrag beendet
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spezifikation
Definitions:
Master Order – Any order opened by F8_V8.0_FL.mq4
Hedge Order – A Hedge Order is an order open when a Master Order profit < hedge_at.
Orphan Order – A Hedge Order whose Master Order has been closed.
Hedge Order is an order in the same Symbol in opposite direction.
Example: If Master Order is BUY Hedge Order is SELL.
How it works
When Master Order reaches hedge_at value a new Hedge Order will open.
The Hedge Order is closed using the following parameters.
============= Changes I want - Parameters - Begin ============================
use_hedge – Boolean – If TRUE use Hedge system in EA F8_V8.0_FL.mq4
Check – string – (e_sort) – choose between money or points.
hedge_at – Double – When profit Master Order reaches this value a new Hedge Order will open.
close_at_profit – Double - When the Hedge Order's profit – positive value - reaches this value, this order will be closed.
Note that if profit_master_order < hedge_at a new Hedge Order will be opened. This is normal.
close_at_lose – Double - When the Hedge Order's profit – negative value - reaches this value, this order will be closed.
Note that if profit_master_order < hedge_at a new Hedge Order will be opened. This is normal.
Lot_multip – Double – Lot multiplier.
All_profit_close_all – Double - When Equity reaches this value all open orders – Masters and Hedge - will closed.
Close_Orphan – Boolean – If true Close Hedge Order when respective Master Order is closed.
============================= Changes I want - End ==========================
====== Place code of EA F8_V6.0.mq4 into EA F8_V8.0_FL.mq4 ======
F8_V8.0_FL.mq4 use 2 MAs to open and close Main orders. Others orders can open using StepUp and StepDown parameters. it works fine. Nothing to do.
EA F8_V6.0.mq4 open 2 Main orders – BUY and SELL - at start and open new order when each Main order is closed. It works fine.
==== What I want in F8_V8.0_FL.mq4 ==================
============== Create a new parameter =================================
open_2_main – Boolean – If False system use 2 MAs to open Main orders. It already works fine. Nothing to do.
If True system use code that run in EA F8_V6.0.mq4 to open 2 Main orders. This code not use PSAR indicator.
========================================================================================
You can see how the Hedge System parameters work in EA Eye_V3.4.1_FL.mq4
This EA does not work correctly, serving ONLY to demonstrate the parameters.