작업 종료됨
![](https://c.mql5.com/i/avatar/avatar_na2.png)
명시
What I want
Add New paramters in Expert Advisor F8_V5.3_FL.mq4
New parameters:
1) open_main_at_cross - Boolean - Open the main order at cross MAs only. Now EA open a new main order when start.
So, if this parameter is FALSE open main order at start. If is TRUE open main order when Moving Averages cross only.
==========================Understanding EA =========================================================================================
The algorithm of the EA:
- The EA checks if there are any orders it had previously opened.
- If there are no open orders, then the EA analyzes the chart, and if all the conditions specified in the settings are met, it opens the first main order.
- After opening the first main order the EA sets the Take Profit and Stop Loss levels (if those modules are enabled).
- If the first main order closes with a loss, then the next order may be opened with an increase in size.
- If the first main order is placed, the Step Up and the Step Down modules are enabled and the price reaches the specified values, then additional orders for these modules are placed. Additional orders for the Step Up and Step Down modules may only be placed in case the EA sees that it has previously opened the first main order or there are unclosed additional orders.
- This Expert Advisor has 2 operation modes:
- a) 1 operation mode is that if the Fast MA is above the Slow MA, then the EA places buy orders, and once the trend changes (the Fast MA is below the Slow MA) all of the opened orders are closed and sell orders are placed.
- b) 2 operation mode is that if the EA has opened buy orders and the trend changes (the Fast MA is below the Slow MA), then the orders remain opened. The EA may place sell orders only when the Fast MA becomes lower than the Slow MA and all of the EA's orders are closed (Take Profit, Stop Loss are reached, or closed "by hand").
- This Expert Advisor has a Trade time module, which, if activated, allows the EA to place the first main order only at the time period specified in this module. This module does not apply to additional orders for Step Up, Step Down and Turn modules. That is, if there are orders previously opened by the EA, and either of the Step Up, Step Down or Turn modules is activated, then additional orders for these modules will be placed regardless of the time.
===================================================================================================================================
2) Reverse - Boolean - When this parameter is TRUE change main order changing BUY for SELL;
3) Include MIN, MAX and NOW in TableOnTesting.
MIN - minimum value reached by open orders;
MAX - maximum value reached by open orders;
NOW - current value of open orders;
This code run in EA GB_EA_27.mq4. You can copy it.