大伊人青草狠狠久久-大伊香蕉精品视频在线-大伊香蕉精品一区视频在线-大伊香蕉在线精品不卡视频-大伊香蕉在线精品视频75-大伊香蕉在线精品视频人碰人

您現在的位置:程序化交易>> 期貨公式>> (MC)multicharts>> MC知識>>正文內容

請教有沒有符合原版海龜的MC代碼?官網下載的有點問題 [MC]

  • MC用戶求助:

    input: InitialBalance(1000000);?

    vars: N(0),StopLoss(1),DV(0),BB(0),AccountBalance(0),DollarRisk(0),LTT(0),LastTrade(0);?

    {/// Turtle 20-Day Breakout Replica //////////////////////////////////////}

    if marketposition = 0 then begin

    BB = 0;

    N = AvgTrueRange(20);?

    DV = N*BigPointValue;

    {AccountBalance = InitialBalance;}

    AccountBalance = InitialBalance + netprofit;

    DollarRisk = AccountBalance * .01;

    LTT = IntPortion(DollarRisk/DV);

    StopLoss = 2 * DV * LTT;

    //Entry Contracts

    buy LTT shares next bar highest(h,20) or higher;

    buy LTT shares next bar highest(h,20) + (0.5*N) or higher;

    buy LTT shares next bar highest(h,20) + (1.0*N) or higher;

    buy LTT shares next bar highest(h,20) + (1.5*N) or higher;

    SellShort LTT shares next bar lowest(l,20) or lower;

    SellShort LTT shares next bar lowest(l,20) - (0.5*N) or lower;

    SellShort LTT shares next bar lowest(l,20) - (1.0*N) or lower;

    SellShort LTT shares next bar lowest(l,20) - (1.5*N) or lower;

    end;

    ?

    ?

    ?

    {// LONG 20 }

    if marketposition = 1 then begin

    BB = BB + 1;

    if currentcontracts = LTT then begin

    buy LTT shares next bar highest(h,20)[BB] + (0.5*N) or higher;

    buy LTT shares next bar highest(h,20)[BB] + (1.0*N) or higher;

    buy LTT shares next bar highest(h,20)[BB]+ (1.5*N) or higher;

    end;

    if currentcontracts = LTT * 2 then begin

    buy LTT shares next bar highest(h,20)[BB] + (1.0*N) or higher;

    buy LTT shares next bar highest(h,20)[BB] + (1.5*N) or higher;

    end;

    if currentcontracts = LTT * 3 then

    buy LTT shares next bar highest(h,20)[BB] + (1.5*N) or higher;

    end;

    ?

    Sell ("out-S") next bar lowest(l,10) or lower;

    ?

    if marketposition = -1 then begin

    BB = BB + 1;

    if currentcontracts = LTT then begin

    SellShort LTT shares next bar lowest(l,20)[BB] - (0.5*N) or lower;

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.0*N) or lower;

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.5*N) or lower;

    end;

    if currentcontracts = LTT * 2 then begin

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.0*N) or lower;

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.5*N) or lower;

    end;

    if currentcontracts = LTT * 3 then?

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.5*N) or lower;?

    end;

    ?

    buytocover ("out-B") next bar highest(h,10) or higher;

    {// STOPS}

    if currentcontracts = (2 * LTT) then StopLoss = DV * 3.5 * LTT;

    if currentcontracts = (3 * LTT) then StopLoss = DV * 4.5 * LTT;

    if currentcontracts = (4 * LTT) then StopLoss = DV * 5.0 * LTT;

    setstoploss (StopLoss);

    ?

    ?

  • MC回復討論一:

    input: InitialBalance(1000000);?

    vars: N(0),StopLoss(1),DV(0),BB(0),AccountBalance(0),DollarRisk(0),LTT(0),LastTrade(0);?

    {/// Turtle 20-Day Breakout Replica //////////////////////////////////////}

    if marketposition = 0 then begin

    BB = 0;

    N = AvgTrueRange(20);?

    DV = N*BigPointValue;

    {AccountBalance = InitialBalance;}

    AccountBalance = InitialBalance + netprofit;

    DollarRisk = AccountBalance * .01;

    LTT = IntPortion(DollarRisk/DV);

    StopLoss = 2 * DV * LTT;

    //Entry Contracts

    buy LTT shares next bar highest(h,20) or higher;

    buy LTT shares next bar highest(h,20) + (0.5*N) or higher;

    buy LTT shares next bar highest(h,20) + (1.0*N) or higher;

    buy LTT shares next bar highest(h,20) + (1.5*N) or higher;

    SellShort LTT shares next bar lowest(l,20) or lower;

    SellShort LTT shares next bar lowest(l,20) - (0.5*N) or lower;

    SellShort LTT shares next bar lowest(l,20) - (1.0*N) or lower;

    SellShort LTT shares next bar lowest(l,20) - (1.5*N) or lower;

    end;

    ?

    ?

    ?

    {// LONG 20 }

    if marketposition = 1 then begin

    BB = BB + 1;

    if currentcontracts = LTT then begin

    buy LTT shares next bar highest(h,20)[BB] + (0.5*N) or higher;

    buy LTT shares next bar highest(h,20)[BB] + (1.0*N) or higher;

    buy LTT shares next bar highest(h,20)[BB]+ (1.5*N) or higher;

    end;

    if currentcontracts = LTT * 2 then begin

    buy LTT shares next bar highest(h,20)[BB] + (1.0*N) or higher;

    buy LTT shares next bar highest(h,20)[BB] + (1.5*N) or higher;

    end;

    if currentcontracts = LTT * 3 then

    buy LTT shares next bar highest(h,20)[BB] + (1.5*N) or higher;

    end;

    ?

    Sell ("out-S") next bar lowest(l,10) or lower;

    ?

    if marketposition = -1 then begin

    BB = BB + 1;

    if currentcontracts = LTT then begin

    SellShort LTT shares next bar lowest(l,20)[BB] - (0.5*N) or lower;

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.0*N) or lower;

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.5*N) or lower;

    end;

    if currentcontracts = LTT * 2 then begin

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.0*N) or lower;

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.5*N) or lower;

    end;

    if currentcontracts = LTT * 3 then?

    SellShort LTT shares next bar lowest(l,20)[BB] - (1.5*N) or lower;?

    end;

    ?

    buytocover ("out-B") next bar highest(h,10) or higher;

    {// STOPS}

    if currentcontracts = (2 * LTT) then StopLoss = DV * 3.5 * LTT;

    if currentcontracts = (3 * LTT) then StopLoss = DV * 4.5 * LTT;

    if currentcontracts = (4 * LTT) then StopLoss = DV * 5.0 * LTT;

    setstoploss (StopLoss);

    ?

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 511411198  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: 老子午夜精品我不卡影院 | 丰满放荡岳乱妇91www | 国产综合在线播放 | 五月色婷婷六月噜噜 | 成人国产精品一级毛片了 | 成人精品视频一区二区在线 | 无毒a网| 国产亚洲精品一品区99热 | 久在线视频 | 日本一级成人毛片免费观看 | 浮力影院欧美三级日本三级 | 久久亚洲美女久久久久 | 亚洲国产天堂在线网址 | 国产日韩一区二区三区在线观看 | 久久九九99 | 国产东北露脸对白 | 中国美女一级毛片 | a欧美在线 | 波多野结衣 一区二区 | 五月婷婷社区 | 日本一级淫片a的一级欧美 日本一级淫片a免费播放 | 99久久免费国产精品热 | 99久久综合精品国产 | 91国内视频在线观看 | 欧美日韩大尺码免费专区 | 色琪琪永久远网址 | 欧美伦理一区二区三区 | 成人国产亚洲 | 在线精品亚洲欧洲第一页 | 中文字幕亚洲一区二区va在线 | 久久天天丁香婷婷中文字幕 | 国内精品久久久久久久星辰影视 | 亚洲成人第一页 | 伊人久热这里只有精品视频99 | 奇米奇米色 | 欧美一区二区三区国产精品 | 狠狠色噜噜狠狠狠狠五月婷 | 欧美区日韩区 | 另类重口性色老妇 | 精品久久久99大香线蕉 | 亚洲欧美精品国产一区色综合 |