• 概述
  • 评论 (3)
  • 评论 (123)
  • 新特性

Universal EA Full Function

通用多货币交易系统

多货币交易系统,基于标准指标。在此 EA 中应用了 12 个标准指标,可达 3 个信号。所有指标有可定制外部参数。

亲爱的用户, 您可以通过给作者写 私信 订购此 EA 的源代码。

主要优势

  • 自动手数 (根据当前余额计算交易量), 资金管理;
  • 依时间工作 (限制 EA 的交易时间);
  • 尾随止损 (标准 "仅当盈利" 算法);
  • 市场观察 ECN (与 ECN, NDD 账户工作);
  • 实盘出错处理功能;
  • 根据总盈亏整体平仓,并禁用账户内所有EA。
  • 盈亏平衡 (移动止损到开仓位);
  • 马丁格尔 (若有亏损,则开仓手数递增);
  • 只配合指标信号工作 (开仓信号, 反向平仓并开新仓信号);
  • 当信号改变,平反向持仓;
  • 该 "反转" 功能能够将您的策略信号反转。

指标和信号

移动均线 (MA) (信号 1)

信号的计算使用两条均线的相对位置,一条周期较小 (快速 MA) ,另一条周期较大 (慢速 MA)。它们的参数可在以下变量中指定:

当快速 MA 位于慢速 MA之上,买信号出现,当慢速 MA 位于快速 MA之上,卖信号出现。"无信号" 状态未使用。

移动均线收敛发散 (MACD) (信号 2)

使用四个变量:

信号很简单: 买 - 主线高于信号线, 卖 - 主线低于信号线。"无信号" 未使用。

随机振荡器 (信号 3)

振荡器由两条线构成 - 主线和信号线,根据两线交叉进行交易。买信号 - 主线在信号线之上, 卖 - 主线在信号线之下。

RSI 指标 (信号 4)

指标类似于 CCI 和 DeMarker。退出超卖 (RSIHighLevel) 和超卖 (RSILowLevel) 区域可作为合适的信号。所以,较少的卖信号对应于下穿高位,而买信号对应于上穿低位。主要状态是 "无信号"。指标周期可以在 RSIPeriod 参数设置, 而计算价格 - 在 RSIPrice 参数里。

商品通道指数 (CCI) (信号 5)

所有三个信号均被使用,但主状态依然是 "无信号"。较少的交易信号对应于下穿高位 (卖) 和上穿低位 (买)。高位和低位由 CCIHighLevel 和 CCILowLevel 外部参数的值决定。指标计算周期和价格由 CCIPeriod 和 CCIPrice 的值决定。

Williams 百分比范围 (WPR) (信号 6)

该指标类似于 RSI, CCI 和 DeMarker。买信号 - 下穿超买级别 (WPRHighLevel) ,以及卖信号 - 上穿超卖级别 (WPRLowLevel)。所有其它情况表示 "无信号" 状态。仅有指标周期参数 (WPRPeriod) 可以在外改变。

布林带 (信号 7)

所有三种类型信号表达: 买 - 之前蜡烛收盘价在低位线之下, 卖 - 之前蜡烛收盘价在高位线之上, "无信号" - 蜡烛收盘价在两线之间。

包络线指标 (信号 8)

由于该指标代表了一个通道,信号类似于在通道工作时的那些:买 -蜡烛收盘价在低位线下方,卖 - 蜡烛收盘价在高位线上方,而"无信号" - 收盘价在两者之间。

鳄鱼 (信号 9)

同样,相同平均方法 (AlligatorMethod) 和计算价格 (AlligatorPrice) 用于所有的线。指标的一个显著特点是,所有线都自右正偏移。它可以从当前柱线读取指标数值,因为它们已经固定且不会被改变。买信号 - 唇线高于牙齿线,而后者高于下颌线; 卖信号 - 唇线低于牙齿线,而后者低于下颌线。其它情况无信号。

移动均线振荡器 (OsMA) (信号 10)

信号的计算略有不同: 买 - 直方图值高于零轴, 卖 - 直方图值低于零轴。有些罕见的 "无信号" 状态,这是当 OsMA 的值等于零。

动量振荡器(AO) (信号 11)

该振荡器没有提供用户参数。与这个指标工作的原理之一就是寻找 "飞碟"。Bill Williams 的 "飞碟" 由正数区域的两根增长的柱线以及在它们之间有一根较低的柱线组成。所以, "反向飞碟" 由负数区域的两根降低的柱线以及在它们之间有一根较高的柱线组成。因此,需要最后三根完整的蜡烛 (在代码中是四根蜡烛) 来检测一个 "飞碟"。买信号 - "飞碟", 卖信号 - "反向飞碟", "无信号" - 所有其它情况。

参数

  • Signal="信号选项";
  • shift=0;
  • IndSigToTrade=2;
  • IndSigToTrade2=0;
  • IndSigToTrade3=0;
  • ReverseSignal=false;
  • ONlyOnePosbySignal=true;
  • ClosePosifChange=true;
  • lotsset="选项";
  • lot=0.1;
  • DynamicLot=false;
  • LotBalancePcnt=20;
  • MaxLot=999;
  • Martin=1;
  • StopLoss=90;
  • TakeProfit=60;
  • timetrade_="时间选项";
  • OpenHour=0;
  • OpenMinute=0;
  • CloseHour=23;
  • CloseMinute=59;
  • Trailing_="尾随选项";
  • TrailingStopUSE=false;
  • IfProfTrail=false;
  • TrailingStop=0;
  • TrailingStep=1;
  • MovingInWLUSE_="无亏损选项";
  • MovingInWLUSE=false;
  • LevelWLoss=0;
  • LevelProfit=0;
  • CloseProfitLoss="盈亏整体平仓选项";
  • TypeofClose=1;
  • CloseProfit=false;
  • prifitessss=10;
  • CloseLoss=false;
  • lossss=-10;
  • OFFAllEaAfterClosePROF=false;
  • OFFAllEaAfterCloseLOSS=false;
  • pair="品种选项";
  • PAIR1="USDCHF";
  • PAIR2="EURJPY";
  • PAIR3="EURUSD";
  • PAIR4="USDJPY";
  • PAIR5="USDCAD";
  • PAIR6="GBPJPY";
  • PAIR7="EURGBP";
  • PAIR8="";
  • PAIR9="";
  • PAIR10="";
  • PAIR11="";
  • PAIR12="".

参数描述

1. 获得信号柱线参数

shift (0,1,2.....) 柱线数。

此参数代表从您的指标中的哪根柱线上读取信号。当订购 EA 时,指定下列信号检测的参数:

  • 在信号出现后,立即开仓;
  • 等待形成信号的柱线收盘,并在随后的新柱线生成时开仓。

一些指标对于触发信号的柱线,在其算法中有清晰的定义。考虑到下单命令执行的精确性和正确性,交易应该只在当前柱线进行处理,即 shift=1 参数。如果有必要在当前柱线出现信号且指标认可时立即开仓,则您应该设置 shift=0。

2. 反转策略信号

ReverseSignal (true - false) 启用\禁用。

此参数表示反转您的指标信号。

若您的 EA 构建在明确的算法或指标信号之上, 您有可能改变买/卖信号而无需重新编程。

例如: ReverseSignal=true。

您的指标给出一个买信号, 但 EA 将开空仓。

您的指标给出一个卖信号, 但 EA 将开多仓。

3. 魔幻数字

Magic (0....99999) 数字。

此参数代表图表上的 EA 的特殊数字。如果您在不同图表里使用了许多 EA,您将需要给它们唯一编号,以避免交易混乱。

例如, 如果您以不同设置使用同一 EA, 您应该为每个 EA 实例给定唯一的魔幻数字。另外此参数应该针对不同货币对进行修改,处理详细报告,了解每个 EA 适合什么样的货币对。

4. 交易的止损

StopLoss (0...) 点数单位。

此参数表示每笔持仓的止损。这是交易止损平仓的点数值。

0 - 参数禁用, 交易止损为 0。

此参数设置应不小于服务器允许的最小数值。

如果参数小于服务器的最小值, EA 将显示错误代码 130。

5. 交易的止盈

TakeProfit (0...) 点数单位。

此参数表示每笔持仓的止盈。交易的盈利点数,服务器将平仓。

0 - 参数禁用, 交易止盈为 0。

此参数设置应不小于服务器允许的最小数值。

如果参数小于服务器的最小值, EA 将显示错误代码 130。

6. 交易滑点

Slippage(0....) 点数单位。

此参数调整开单时的滑点。

在实际市场里,价格移动很快,所以,当发送订单至服务器时,服务器可能响应:价格变化,重新报价等等。为了不向服务器发送过多订单,您可以设置开单时的允许滑点参数。

例如: Slippage=10。

当发送开单请求时,价格是 1.1234。但价格变化到 1.1238。此时,成交将在 1.1238 处执行而无需重新报价!但是如果滑点等于 0,则在此例中不会成交,服务器将发送重新报价错误 (新价格)。

7. 以反向信号平仓

ClosePosifChange (true - false)。

此参数可以在开新仓时,平掉反向持仓。如果您的指标使用 买 - 卖 - 买 - 卖信号,并且此参数启用,则 EA 将在开单之前平反向持仓。

8. 信号的开单数量

ONlyOnePosbySignal (true - false) 启用\禁用。

此参数用于选择是否一个信号可以开多个单。

如果此参数启用, 在信号来临的柱线上只能开一单。

例如, 您的策略在每根新柱线上给出连续买信号, 并且 ONlyOnePosbySignal= true, 则在每根信号出现的柱线上开买单。

如果 ONlyOnePosbySignal = false, 则 EA 仅可开一个买单和卖单,直到它们被平仓。

9. 固定手数

Lots (0.01 .........) - 设置所有交易的固定手数。

此参数指定下单手数。手数固定,并用于所有交易。

您需要问清楚您的经纪商所允许的最小交易手数。

10. 动态手数

DynamicLot (true - false) LotBalancePcnt (保证金的百分比)。

这些参数调整自动计算手数,和依据可用保证金选择手数。

11. 逆势翻倍加仓

Martin (1....) - 马丁格尔比率。

此参数允许您在策略中使用马丁格尔原理, 即如果某单未盈利,则后续开仓手数按照 Lot * Martin 系数递增。

如果参数等于 1, 则马丁格尔未使用。

例如: Lots = 0.01 Martin =2:

  1. 买单 (0.01) 亏损平仓或止损。
  2. 那么下一次开单手数将为 0.01 * 2 = 0.02。
  3. 如果前一单止损,则后续开仓手数为 0.04。

如果前一单盈利平仓,或止盈,则后续开单手数为初始的 0.01。

12. EA 的工作时间

OpenHour (小时单位), OpenMinute (分钟单位), CloseHour (小时单位), CloseMinute (分钟单位)。

这些参数调整 EA 工作时间范围, 且这个时间仅应用在开新单。尾随止损和盈亏平衡的工作独立于这个范围。

例如, 您希望 EA 仅在 2 p.m. 至 6.35 p.m 之间交易。则参数看起来像是:

OpenHour= 14, OpenMinute=0, CloseHour=18, CloseMinute =35п.

交易将仅在下午 2 点至下午 6.35 之间开单。其余时间您的策略产生的所有信号将被忽略。

13. 经典尾随止损

TrailingStopUSE (true - false), IfProfTrail(true - false), TrailingStop (点数), TrailingStep (点数)。

这些参数启用\禁用自动跟踪持仓,并移动持仓的止损位 + 区间。

TrailingStopUSE - 启用\禁用尾随止损功能。

IfProfTrail - 若为 true, EA 仅在盈亏平衡时开始修改。若为 false, 尾随止损在开仓后即开始在价格后拖动。

TrailingStop - 当前价位至止位损的距离点数。此参数可以小于服务器允许的最小值。

TrailingStep - 止损位修改步长。

例如,自当前价位,加上 TrailingStop 点,再经过 TrailingStep 点之后,修改一次止损位。

14. 整体盈利\亏损平仓功能

这些参数可以在触及时,将给定的品种以及魔幻数字的持仓平仓。

  • TypeofClose=1 - 以盈利平仓: 1 - 美元, 2 - 点数, 3 - 净值百分比, 4 - 余额百分比;
  • CloseProfit=false - 平仓, 如果正值;
  • prifitessss=10 - 数字单位 (依据 TypeofClose) 盈利平仓;
  • CloseLoss=false - 如果 lossss= -10 平仓 - 数字单位 (依据 TypeofClose) 亏损平仓;
  • OFFAllEaAfterClosePROF=false - 在盈利平仓后禁用所有 EA 和 脚本;
  • OFFAllEaAfterCloseLOSS=false - 在亏损平仓后禁用所有 EA 和 脚本。

例如:

  • 如果您希望在账户盈利10$ 后部分平仓:
    TypeofClose=1, CloseProfit=true, prifitessss=10.
  • 如果您希望买卖单在账户亏损 200 点后平仓:TypeofClose=2, CloseLoss=true, lossss=200.
  • 如果您希望在账户亏损 5 % 本金、以及在盈利 10% 本金之后部分平仓:TypeofClose=4, CloseLoss=true, lossss=5, CloseProfit=true, prifitessss=10.

在此情况下您可以在使用 OFFAllEaAfterClosePROF 和/或 OFFAllEaAfterCloseLOSS 函数平仓后禁用 EA。那么 EA 将在平仓后禁用所有 EA。

15. 移动止损位至盈亏平衡位

MovingInWLUSE (true - false) LevelWLoss (点数) LevelProfit (点数)。

这些参数可以尽早地在盈亏平衡点修改止损位。

例如:

  • 当持仓盈利 10 个点以上,您希望将止损设置在盈亏平衡位:
    MovingInWLUSE = true, LevelWLoss=0, LevelProfit=10.
  • 当持仓盈利 20 个点以上,您希望将止损设置在盈利 5 个点:
    MovingInWLUSE = true, LevelWLoss=5, LevelProfit=20.

那时,不同的 LevelProfit-LevelWLoss 之间必须大于或等于服务器的最小停止位。

指标参数:

  • 移动均线参数:
    • periodma1=8;
    • periodma2=16;
    • MAmethod=MODE_SMA;
    • MAprice=PRICE_CLOSE;
  • MACD 参数:
    • FastMACD=110;
    • SlowMACD=136;
    • MACDSMA=14;
    • MACDprice=PRICE_LOW;
  • 随机振荡器参数:
    • SOPeriodK=5;
    • SOPeriodD=3;
    • SOslowing=3;
    • SOmethod=MODE_SMA;
    • SOpricefield=STO_LOWHIGH;
  • RSI 参数:
    • RSIPeriod=14;
    • RSIprice=PRICE_CLOSE;
  • CCI 参数:
    • CCIPeriod=14;
    • CCIprice=PRICE_TYPICAL:
  • WPR 参数:
    • WPRPeriod=14;
  • 布林带参数:
    • BBPeriod=20;
    • BBdeviation=2.0;
    • BBprice=PRICE_CLOSE;
  • 包络线参数:
    • ENVPeriod=14;
    • ENVdeviation=0.1;
    • ENVprice=PRICE_CLOSE;
    • ENVmethod=MODE_SMA;
  • 鳄鱼参数:
    • ALjawperiod=13;
    • ALteethperiod=8;
    • ALlipsperiod=5;
    • ALmethod=MODE_SMMA;
    • ALprice=PRICE_MEDIAN;
  • Ichimoku Kinko Hyo 参数:
    • IKHtenkansen=9;
    • IKHkijunsen=26;
    • IKHsenkouspanb=52.
Jozsef Kecskesi
212
2015.10.16 17:27 
 

Working very well for me, have to fully understand and test it first though.

Evgeniy Ozhiganov
5309
2015.02.22 03:37 
 

Благодарю Владислава за отличного советника и за проделанную работу!!!

Это была моя первая серьезная покупка на этом сайте, именно с него я только начал познание автоматических торговых систем.

Моим главным критерием выбора была мультивалютность советника, это имело огромное значение для меня, а из всего что было на тот момент в маркете (их было два или три..), этот был лучший. Протестировав на демо Universal EA и получив ожидаемые результаты я его приобрел, с помощью него в дальнейшем торговал, разрабатывал и тестировал стратегии, комбинируя настройки советника. Даже как то предложил внести некоторые добавления в работу советника, после которых появился - (сигнал номер 13) за что отдельное спасибо. Благодаря данному советнику я смог разработать собственную торговую систему по которой успешно торгую по сегодняшний день...

ВЫВОД: Отличный продукт для новичков познающих автоматический трейдинг и для тестеров индикаторных стратегий.

Reanimator
111
2013.07.09 11:32 
 

После проведения оптимизации появилось желание приобрести продукт.

版本 17.201 - 2017.02.20
Fixed the error in displaying the autolot in EAPADPRO
Added output of the signal information to the journal when a trade is opened.
Fixed the multi-currency operation mode of the EA.

Operation by time feature

Attention: Trading by time involves only filtering for opening new deals based on new signals.
All other functions: Trailing stop, Breakeven, Averaging, Scaling up along the trend and other works around the clock.
Attention: All parameters for trading by time can be optimized in the tester.


If TradeStartStopbyTime = false, the EA trades around the clock.

If TradeStartStopbyTime = true, the trading by time is activated:
The trading by time period starts on Monday.
The EA starts working on Monday at OpenHourMonday:OpenMinuteMonday if TradeStartbyTimeMonday=true
For example, OpenHourMonday=3 and OpenMinuteMonday=40, then the EA starts trading on Monday at 40:03 server time
(time of your broker, indicated in the Market Watch).

Next, the EA checks the trading time according to the parameters: OpenHour:OpenMinute - trading start and CloseHour:CloseMinute - trading end time for one day.
For example: OpenHour=5 and OpenMinute=0, as well as CloseHour=18 and CloseMinute=59, then the EA will trade every day from 5:00 to 18:59.

To set a trading period from the starting time, set the ClosePeriod_Minute parameter - period in minutes.
For example, OpenHour=6 and OpenMinute=6 and ClosePeriod_Minute=00, then the EA sets the trading time from 0:00 to 180:6(180+9 minutes = 9 hours).

You can also set multiple time intervals for trading in the SeveralTimeWork parameter. Entry format: HH:MM-HH:MM;
where: Hour to start trading:Minute to start trading - Hour to stop trading: Minute to stop trading.
For example, SeveralTimeWork=3:00-5:00;7:30-8:50;12:00-15:00;
then the EA will trade during 3 time intervals. from 3:00 to 5:00, from 7:30 to 8:50 and from 12:00 to 15:00. The EA will not open order during the remaining time.

You can also close all open deals and pending orders outside the trading time, CloseAllTradesByOutOfTime=true.
The EA will trade during the time specified above, and when the trading time ends, the EA will close all open positions and orders.


TradeStartStopbyTimeFriday - Trading time for Friday.
This EA allows the users to set the trading time for the EA on Friday.
Time parameters for Friday: OpenHourFriday:OpenMinuteFriday - CloseHourFriday:CloseMinuteFriday
For example, the EA should not open new deals on Friday after 18:00, set:
OpenHourFriday=0:OpenMinuteFriday=0 - CloseHourFriday=18:CloseMinuteFriday=0
In this case, the EA will not open new deals after 18:00

It is also possible to close all open deals and pending orders on Friday at the specified time - 18:00, CloseFriday=true.
CloseAllTradesByOutOfTime


The block for operation by time allows to set the trading days: TradeByDays
For example, TradeByDays=true Days=1,2,3 - in this case, the EA will trade only on Monday, Tuesday and Wednesday during the time specified above. Or it will trade around the clock those 3 days, if the time is not specified.
If you set Days=1,2,3,4,5 but with TradeStartStopbyTimeFriday=false, the EA will not trade on Friday.

It is also possible to set 1 day for optimization in the DayForOptimization parameter.
This option is useful to determine the most profitable days in optimization.
For example, DayForOptimization = 3, then the EA will trade only on Wednesdays.


You can set the trading to start on Monday and to stop on Friday, while the EA trades around the clock on the remaining days.
You can set the start on Monday and specific hours on other days.
版本 17.121 - 2017.01.27
Block of Parabolic SAR based trailing stop
-Added parameter TrailingStopSAR_TimeFrame - Timeframe of the SAR indicator for the trailing stop.
-To the МТ5 version: Added Parabolic SAR based trailing stop
TrailingStopSAR (true - false) step and maximum (parameters of the Parabolic SAR)
These parameters allow the modification of stop loss based on the specified Parabolic
The stop loss will be modified at every new value of the Parabolic SAR.
Accordingly, Buy is modified when the Parabolic SAR is below the price, Sell is modified when the Parabolic is above the price.


Block of signals
-Added parameter Signal_Reverse,Filter1_Reverse,Filter2_Reverse - they allow to inverse signals
based on specific indicators (Main signal, Filter 1 and Filter 2)
-Changed the MinuteToOpenNextPosition parameter (Allow opening the next signal after the last opened position),
if there are no open positions, the EA considers the time since the last closed position.
The time is considered for the same type. If the signal is BUY, the time is calculated from the last opened \ closed BUY....
-Changed the function for receiving signal when using signal inversion.
For example:


*If you use WPR as signal source, with the levels:
WPRHighLevel= -20;
WPRLowLevel = -80;
then:
Buy is opened, if WPR crosses WPRLowLevel (-80) upwards
SELL is opened, if WPR crosses WPRHighLevel (-20) downwards

*If you enable the option: Signal_Reverse=true
then:
SELL is opened, if WPR crosses WPRLowLevel (-80) upwards
Buy is opened, if WPR crosses WPRHighLevel (-20) downwards

*If you enable the option: Signal_Reverse=true and set the parameters:
WPRHighLevel= -80;
WPRLowLevel = -20;
then:
Buy is opened, if WPR crosses WPRHighLevel (-80) downwards
SELL is opened, if WPR crosses WPRLowLevel (-20) upwards

- added parameters for the MACD signal
MACD_BUYLEVEL=0;
MACD_SELLLEVEL=0;
Which are involved in determining the signal.
for example: MACD_BUYLEVEL=3,MACD_SELLLEVEL=-3
For the long trade, the signal crosses the MACD line and at the end of that candle the MACD is greater than 0 and MACD is less than 3,0 (the signal line and MACD line must be both above the origin and less than 3.0).
For the short trade, the signal crosses the MACD line and at the end of that candle the MACD is less than 0 and MACD is greater than -3,0 (the signal line and MACD line must be both below the origin and greater than 3.0).



-Added automatic checking and normalization for all stops to tick size on the current currency pair.
For example, if the tick size on the WING17 symbol is 5 points, then all stop loss and take profit values will be normalized.
For example, the contract price is 58840 and the automatic stop loss calculation resulted in 1211 points, the final stop loss will be normalized to 1210 points.


Automated calculation of commission and swap has been added to the Trailing Stop and Breakeven functions.
Now trailing stop only triggers after a position covers the commission amount.


Limiting loss and profit per 1 day/week/month
Limiting LimitFor - Limitation type day/week/month
LimitForLosses - Limit by profit
LimitForProfits- Limit by loss
LimitType - Limit by USD, points, percentage of the deposit
ClosebyLIMITING - Close deals of the EA when the limit is exceeded
UseCurrentProfit - Consider the current profit/loss in calculation of limit

This function is capable of disabling the EA operation in case the EA accumulates certain profit/loss in deposit currency per day/week/month The EA will be reactivated the next day/week/month
For example, LimitFor=DAY LimitForProfits=1 Close by total profit = 10 USD
You can also select the limit type (LimitType) for calculations. In the USD, points, percentage of the account balance.
If you need to close and delete all deals using this EA once the limits are exceeded, you can set ClosebyLIMITING = true
The UseCurrentProfit parameter prohibits or allows considering the current floating profit/loss for this EA


Added new signals:
AC - signal principle is the same as in the АО indicator
Ichimoku - operation principle based on intersection of the TENKANSEN and KIJUNSEN lines,
If TENKANSEN is greater than KIJUNSEN - BUY signal
If TENKANSEN is less than KIJUNSEN - BUY signal
Bar - Work in the direction of the bar
If the candle Close is above the candle Open (Bullish candle) - BUY signal
If the candle Close is below the candle Open (Bearish candle) - SELL signal


Added new filters
AC - signal principle is the same as in the АО indicator
Ichimoku - operation principle based on location of the TENKANSEN and KIJUNSEN lines,
Bar - Work in the direction of the bar
Bar relatively MA - The EA signals are filtered based on the values of bar Close and Fast\Slow MA
If the bar Close is above MAfast and MAslow - only BUY signals
If the bar Close is below MAfast and MAslow - only SELL signals


Bug fixes


Performed code optimization in order to reduce the CPU load.
Added support of the EA in the Brazilian market.
Added a new variable:
SeveralTimeWork = the EA operation time through listing,
entry format:
start hour:start minute-end hour:end minute;start hour:start minute-end hour:end minute;
For example:
09:00-10:00;12:00-13:00;15:00-17:30;
means that the EA will work from 9:00 to 10:00, also from 12:00 to 13:00, and also from 15:00 to 17:30





Fixed error when testing with the AutoTrading button enabled
Fixed working with long tickets

- Added the EAPADPRO information panel
Details on the panel in our blog:
or https://www.mql5.com/ru/blogs/post/687140

The following data has been moved to the Strategy Info block:
OWN Signal = Name of the signal + Timeframe of the signal + Reverse
Current Signal = Current signal from the main indicator
Filter 1/2 - Name of the filter 1/2
Current Filter - Current signal from filters 1/2
BUY Average/Lot - Next averaging in points for BUY / Next averaging lot
SELL Average/Lot - Next averaging in points for SELL / Next averaging lot
Buy Additional/Lot - Next additional opening in points for BUY / Next lot for additional opening
Sell Additional/Lot - Next additional opening in points for SELL / Next lot for additional opening
Average Price Buy - Average price for BUY deals
Price Sell - Average price for SELL deals
版本 16.955 - 2016.10.31
Fixed a bug in breakeven MovingInWLUSE, where stop loss of a trade could be ranging between breakeven and triggered trailing stop
版本 16.945 - 2016.10.24
Fixed error in setting the stop loss
版本 16.940 - 2016.10.13
Added Expert Advisor operation on hedge accounts. The Expert Advisor can work on netting and hedging accounts!
Added Magic number.
Fixed balance calculation error in the unit of profit based closure, for the accounts tradfed in daytrading and equal to 0


New functions have been added to the Profit or Loss section:
TrailOptions - Number of profit "units", after which trailing will be activated;
TrailOptionsStep - Trailing step in "units";
Profit trailing at closure
The new profit trailing function was introduced by demand of our customers. This function enables profit trailing. I.e. instead of closing a fixed profit, the profit is closed with a correction. Once profit reaches the specified value, the EA remembers the current profit position and starts to trail this position following the profit. If you set to close at a profit of $10:

CloseProfit - close with profit.
prifitessss - amount of profit to close.
TrailOptions - distance from prifitessss, reaching which profit trailing will be enabled.
If prifitesss is set to 10, and TrailOptions is set to 5, the profit trailing line is set to $5. After reaching the $10 limit, the EA will activate the profit trailing function and will start to trail the closure label following the profit. Current profit position will be recorder to he journal.
Once the total profit gets down below the last recorded TrailOptions levle, the EA will close all deals.


New parameter OnePosPerDirection: opening 1 trade in one direction
Example:
If OnePosPerDirection=true and ONlyOnePosbySignal = false
the EA can open one Buy trade at a signal and one Sell trade at a signal
If OnePosPerDirection=false and ONlyOnePosbySignal = true
the EA can only open one trade at a signal, either Buy or Sell
If OnePosPerDirection=false and ONlyOnePosbySignal = false
The EA can open any trades at each signal of theindicator

New parameter OnlyOnePositionPerMagic: Opening 1 position per one magic.
The EA checks if there are open positions on other currency pairs for this magic. If there are no positions, the EA will open a trade at a signal, and other EAs will wait till the trade is closed.


New parameter CloseChangeOnlyInProfit - closing trades at an opposite signal only when the current position is in profit.
版本 16.721 - 2016.07.26
Fixed the error of invisible averaging in the EA.
Alert: This EA may not work on hedge account.
版本 16.428 - 2016.05.06
Fixed the error with minimal lot.
版本 16.408 - 2016.04.12
Fixed making Journal entries at each tick in case of incorrect stops.

Added the SetMinStops variable:
In case of AutoSetMinLevel, stop levels are reduced to the minimum possible levels allowed on the server;
In case of ManualSet, a user receives a message that stop levels in the EA are less than the minimum allowed ones, and the EA stops operation.
版本 16.309 - 2016.03.23
Changed the procedure of lot calculation when using martingale.
Increases the last lot of the open position according to the last trade.
Fixed the time calculation for VPS.
Added Rounding parameter:
Without rounding - place stop orders without rounding
To 1 digit - rounding to 1 digit. For example, if Stoploss= 1.23456, the trade will be opened with a stop loss of 1.23450
To 2 digits - rounding to 2 digits. For example, if Stoploss= 1.23456, the trade will be opened with a stop loss of 1.23400
版本 16.226 - 2016.03.01
The updated version for the stock market:
- Fixed the error in the determination of the last lot, if the position was closed by several requests.
版本 16.105 - 2016.01.08
Redesigned the signals block when the IndSigToTrade and IndSigToTrade2 are selected.
Before: A trade opens only when the two signals match at the same time.
Now: If the IndSigToTrade signal appeared, then the FILTER_IndSigToTrade2 and FILTER_IndSigToTrade3 indicators are checked. If their signals go on, the trade is opened.
I.e. If the IndSigToTrade is selected as the main signal, then the FILTER_IndSigToTrade2 and FILTER_IndSigToTrade3 parameters only trigger as filters.

Added automatic detection of the order filling type.
版本 15.981 - 2015.11.25
In signals of Stochastic RSI CCI WPR, added levels for the EA to count signals from.
Stochastic_BUYLEVEL=20;
Stochastic_SELLLEVEL=80;
Rsi_BUYLEVEL=30;
Rsi_SELLLEVEL=70;
CCI_BUYLEVEL=-100;
CCI_SELLLEVEL=100;
WPR_BUYLEVEL=-80;
WPR_SELLLEVEL=-20;
版本 15.943 - 2015.10.26
added option CloseAllTradesByOutOfTime
When using the resolution of trade:
input int OpenHour = 0;
input int OpenMinute = 0;
input int CloseHour = 23;
input int CloseMinute = 59;

When time is up, and has open positions CloseAllTradesByOutOfTime - closes all the positions.
版本 15.607 - 2015.07.07
New parameter of execution type selection is added to external parameters:
TypeFilling=FillOrKill


FillOrKill
This execution policy means that an order can be executed only in the specified volume. If the market does not have enough volume of the financial symbol at the given moment, the order will not be executed. The desired volume can be made up of several available offers.


ImmediateOrCancel
Confirmation of performing a trade by maximum volume available in the market within the volume specified in the order. If full order execution is impossible, the order will be executed within available volume, and unexecuted volume will be canceled.


Return
This mode is used for market, limit and stop limit orders and only in Market Execution and Exchange Execution modes. In case of partial execution, a market or limit order with residual volume stays active.
A corresponding limit order with Return execution type is created for activated stop limit orders.
版本 14.904 - 2014.09.04
Added protection from wrong values of the SHIFT parameter and from the critical error Critical RunTime Error 502.
版本 14.209 - 2014.02.10
Fixed operation of some indicators, MA and MACD in particular.
版本 14.122 - 2014.01.23
Added price check when trading shares due to client requests.
版本 14.103 - 2013.10.04
Added the signal 13 - strategy based on Accelerator oscillator.
版本 13.820 - 2013.08.21
Amended the autolot function for brokers that have symbols with suffixes, for example: EURUSD.m.
版本 13.813 - 2013.08.13
Updated TrailingStop function.
When using initial trailing stop and a set of signals for modifying the stop loss, the initial stop loss is reset and the TrailingStop function starts working instead.
版本 13.237 - 2013.07.24
The EA has been updated for the terminal's build. Added condition for trading time: if parameters remain unchanged, the EA works 24 hours.

The EA is best suited for working at VPS server.