sophisticated grid pro Advisor. Applies a strategy based on cost volatility. Trading starts when this cost increases by N points at the closing cost of the previous bar, N minutes from the launch period of the current bar. If the price has n’t exceeded the N value of the average price volatility (ATR) in %/points in the allotted time, then trading is suspended until the start of a brand new bar.
? Telegram chat for discussion and questions: https://t.me/forex4up_chat
MT4 version of the Expert Advisor connection
Applies lively levels of prevent orders, stop reduction, take profit, monitoring stop, and breakeven that are invisible to the broker. The values can be set in pips or as a percentage of the average price volatility (ATR).
The chart shows information about the quality of order execution, the profit received and the current open positions (the number of orders, the number of lots and profit). Suitable for working with any brokers, including American brokers with a FIFO requirement-the requirement to close previously opened transactions first.
For the first acquaintance with the Expert Advisor, I recommend turning on the visual mode in the strategy tester. I tried to make the Expert Advisor informative, so that any trader could understand the principles of its work.
[spoiler title=”Read More…”]
SHOW_INFORMATION-enables buttons and displays information on the chart.
The first trades can also be opened using buttons or lines. In order for the Expert Advisor to open a position on the line: plot the line on the chart and rename it. When the price crosses it, the Expert Advisor executes the corresponding command.
- OPEN_SELL – open a sell order
- CLOSE_SELL – close all sell orders
- OPEN_BUY – open a buy order
- CLOSE_BUY – close all buy orders
- meets the FIFO rules;
- designed for real trading in today’s market conditions;
- virtual pending orders and stops are used;
- it does not depend on the type of trading account or broker;
- it is resistant to communication breaks, gaps, slippages and spread extensions.
- AUTOTRADING – allow you to open orders based on the underlying strategy
- TIME_START, TIME_END – the time at which the EA is allowed to open new orders
- CHANGE_DIRECTION-automatic strategy change if the number of orders in the grid exceeds the N value
- TIMEFRAME – working timeframe
- ATR_VALUES – use the ATR percentage to calculate the levels
- PERIOD_ATR – the period for determining the average volatility;
- UPDATE_MINUTES – time in minutes elapsed from the opening time of the current bar to suspend trading;
- DEL_ORDER_PRICE-delete order opening levels after the specified time has elapsed
- PRICE_INCREASED-extreme price increase in N minutes from the time of opening the current bar to enter the market with the first order;
- FIRST_ORDER_STOP – the initial distance between PRICE_INCREASED and the price
- ORDER_OPEN_STOP – the initial distance between PRICE_DRAWDOWN and the price
- FIRST_ORDER_STEP – distance from the extremum to set the opening level of the first order;
- MAGIC_NUMBER – magic number;
- MAX_SLIPPAGE – maximum slippage for the first order, in pips. if = 0, not used;
- MAX_SPREAD – the maximum spread size when opening orders, in pips;
- MAX_GAP the maximum size of the gap between the opening and closing price of the previous bar;
- FIX_START_LOT – fixed starting lot for each N amount from the balance (FROM_BALANCE);
- FROM_BALANCE – N the balance amount for calculating the starting lot (FIX_START_LOT);
- PRICE_DRAWDOWN – drawdown for activating the order grid;
- ORDER_OPEN_STEP – step of trailing stop orders grid;
- START_MULTIPLY – which order to start increasing the lot from;
- LOT_MULTIPLY – lot multiplier in the order grid;
- MAX_LOT_FOR_1000 – maximum lot for every 1000 of the balance
- STOPLOSS-stop loss;
- TAKEPROFIT-take profit;
- BREAKEVEN_START-profit to activate breakeven;
- BREAKEVEN_PROFIT – the profit with which orders will be closed at breakeven;
- TRAILING_START-profit to activate the trailing stop;
- TRAILING_STOP – the initial distance between TRAILING_START and the price
- TRAILING_STEP – step of the trailing profit;
[/spoiler]