DYJ Spiraling EA

DYJ Spiraling专家使用DYJ Spiraling指标算法，采用概率与数理统计算法，计算前一K线波幅，当波幅大于100%时，在这个K线收盘时是入场信号。

• MagicNumber = 2535 -- EA标识号.
• MAX_BARS = 50 -- 最大K线数量.
• SihnalledPercent = 100 -- 表示产生多空信号的趋势百分比要求在100%或更多。
• Risk_Management = Automatic - 自动管理风险，自动计算交易量.
• Auto_Risk_Percent = 2 - 自动风险百分比.（含义2%）
• Auto_Max_Risk_in_Total_Orders = 10 - 自动最大风险（含义10%）.
• Manual_Lots = 0.01 - 手动设置交易量 (如果不是自动管理风险).
• Manual_Maximum_Lots = 1 - 手动最大交易量.
• Max Orders = 2 - 最大定单数量.
• OpenOrdersAtSignalled = 2 - 每次有信号时开2个订单.
• Direction = Both -- 交易方向.
• MinTimeFrame  = H1;  --最小入场周期
• MaxTimeFrame = D1;  --最大入场周期
• ALLPROFIT = 10 -- 全部货币总利润达到10\$时,全部平仓.
• SYMBOLPROFIT =5 -- 某个货币总利润达到5\$时，平仓这个货币的全部订单.
• stopLossTrailPips = 0 -- 追踪止损.
• Wait_Mins_For_Next_Trade = 240 -- 等待下一个交易时间分(分钟).

• Daying Cao,  我是一个具有丰富经验的软件工程师.

The DYJ Spiraling EA is based on DYJ Spiraling indicator,DYJ Spiraling advanced algorithm, using probability and mathematical statistics algorithm to calculate the Trend-wave of the previous bar.

When the Trend-wave is greater than 100%,  the entry signal is at the close of the bar.

The upwards Bar is Long signal, and the downward Bar is Short signal.

Long orders will be closed as soon as the SIGNALLED BAR Closing price is lower than the  lowest price.

Short orders will be closed as soon as the SIGNALLED BAR Closing price is  higher than the highest price,.

Parameters：

• Pairs  --Specify multiple symbols, separated by commas, such as EURUSD,USDJPY,CADJPY";
• MagicNumber = 2535 -- EA's MagicNumber.
• MAX_BARS = 50 -- Maximum Bars.
• SihnalledPercent = 100 --  Trend-wave percentage requirements 100% or more.
• Risk_Management = Automatic - calculate lots automatically.
• Auto_Risk_Percent = 2 - automatic risk. For example, 2 means 2%.
• Auto_Max_Risk_in_Total_Orders = 10 - automatic max risk. For example, 10 means 10%.
• Manual_Lots = 0.01 - Manual Number of lots (if not automatic risk)
• Manual_Maximum_Lots = 1 - Maximum Lots.
• Max Orders = 2 - Maximum Orders.
• OpenOrdersAtSignalled = 2 - Open Orders At Signalled.
• Direction = Both -- Transaction directionpa
• MinTimeFrame  = H1;  --Minimum TimeFrame
• MaxTimeFrame = D1;  --Maximum TimeFrame
• ALLPROFIT = 10 -- Orders will be closed as soon as the all currency pairs profit is equal or above the preset value.
• SYMBOLPROFIT =5 -- Orders will be closed as soon as the a currency pair lower than the preset value.
• stopLossTrailPips = 0 -- Trailing Stop Loss