The price on the market is always in motion. The "ZONA" EA limits the price movement by creating a zone of orders:
Wherever the price goes out of the zone, there will be more profitable orders than unprofitable ones.
The EA provides:
- trading by time;
- closing orders after reaching the specified profit -- in currency or in points;
- disabling the EA after closing all orders by profit;
- enabling trailing stop at the specified profit level.
The following information for the specific EA is displayed on the screen:
- current points--the current profit in points for the open orders
- current profit--the current profit in the deposit currency for the open orders
- today profit-- daily profit in the deposit currency (in the strategy tester displays the net profit from the beginning of the testing)
- PriceBUY--the price, above which buying is allowed
- PriceSELL--the price, below which selling is allowed
- Magic--identification number of the EA
- min Distance ZONA--the minimum allowed distance between the BUY and SELL orders
The possible applications of the EA:
- on the support and resistance levels -- PriceBUY=resistance price, PriceSELL=support price, Distance_ZONA =Stop loss (in points), NumberOfUnits=Take profit (in points), BreakevenPoint =supposed breakeven level in points.
- Stop loss of a manually opened order --Magic =0,PriceBUY=0, PriceSELL=0, Distance_ZONA =Stop loss (in points), NumberOfUnits=Take profit (in points), BreakevenPoint =Stop loss (in points);
Trading time settings:
required for placing the first orders, that is, the time when it is allowed to place the first orders.
- OpenHour - Trading open hour;
- OpenMinute - Trading open minute;
- CloseHour - Trading close hour;
- CloseMinute - Trading close minute;
- Magic -identification number of the EA, if Magic =0, then the EA can work with manually opened orders
- Lots - fixed lot only for the first order
Prices for opening the first orders:
- PriceBUY -price for the first buy order, if PriceBUY=0, the first BUY order will not be placed
- PriceSELL -price for the first sell order, if PriceSELL=0, the first SELL order will not be placed
If the current market price is greater than PriceBUY, then the first buy order is placed.
If the current market price is less than PriceSELL, then the first sell order is placed.
- ZONAUSE --if true the zone is used, if false it is not used
- Distance_ZONA -- distance for the zone between the BUY and SELL orders in points, if Distance_ZONA is less than min Distance ZONA, then the distance for the zone will be equal to min Distance ZONA.
- BreakevenPoint --distance from the zone border to the breakeven level in points, once the price passes this level the profit will be positive.
Settings for closing by the total profit:
- TypeofClose - closing orders by profit in the deposit currency - TypeofClose=1, closing orders by profit in points - TypeofClose=2.
- CloseProfit - if true close by the total profit, if false - do not close
- NumberOfUnits - the number of units for closing by profit
- OFFEaAfterClosePROF- if true the EA is disabled after closing all orders, if false it is not disabled.
Settings for trailing stop by the total profit:
- TrailTotalProfitUSE - if true the trailing stop is used, is false it is not used
- LevelProfit - profit level in points to activate the breakeven
- TrailingStop -trailing stop distance
CloseLoss=true - enable closing orders by total loss.
CloseLoss=false - disable closing orders by total loss.
NumberOfMoneyLoss - estimated loss in a deposit currency.