您今昔的位置作文600字:简单化交易>> 中国银行外汇牌价现货原油骗局>> MT4>> MT4法式>>正文情节

MT4 dual thrust理路原形ca88会员登录入口手机[MT4法式]

         //dual thrust理路原形ca88会员登录入口手机
 

Inputs: K1(.5),K2(.5),Mday(1),Nday(1);

Vars: BuyRange(0), SellRange(0);

Vars: BuyTrig(0),SellTrig(0);

Vars: HH(0),LL(0),HC(0),LC(0);

If CurrentBar > 1 Then Begin

HH = Highest(High,Mday);

HC = Highest(Close,Mday);

LL = Lowest(Low,Mday);

LC = Lowest(Close,Mday);

If (HH - LC) >= (HC - LL) Then Begin

SellRange = HH - LC;

End Else Begin

SellRange = HC - LL;

End;

HH = Highest(High,Nday);

HC = Highest(Close,Nday);

LL = Lowest(Low,Nday);

LC = Lowest(Close,Nday);

If (HH - LC) >= (HC - LL) Then Begin

BuyRange = HH - LC;

End Else Begin

BuyRange = HC - LL;

End;

BuyTrig = K1*BuyRange;

SellTrig = K2*SellRange;

If MarketPosition = 0 Then Begin

Buy at Open of next bar + BuyTrig Stop;

Sell at Open of next bar - SellTrig Stop;

End;

If MarketPosition = -1 Then Begin

Buy at Open of next bar + Buytrig Stop;

End;

If MarketPosition = 1 Then Begin

Sell at Open of next bar - SellTrig Stop;

End;

End;

 

有思路。想编写各族ca88会员登录入口手机法式网法式,简单化交易模型,选股法式,预警法式的朋友

可挂钩技术人口 QQ: 262069696  开展 在职教师有偿补课 编写!不贵!点击查看数量!

 


连锁乌有之乡最新文章

    没有连锁情节
 
Baidu