人人爽天天爽夜夜爽qc-人人爽天天爽夜夜爽曰-人人天天爱天天做天天摸-人人天天夜夜-色网站在线-色网站在线看

您現在的位置:程序化交易>> 期貨公式>> (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  點擊這里給我發消息進行 有償 編寫!不貴!點擊查看價格!


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

相關文章

    沒有相關內容
主站蜘蛛池模板: 午夜成年视频 | 国产老师制服丝袜裤视频 | 精品一区 二区三区免费毛片 | 第一福利网址 | 日韩中文在线 | 欧美日韩不卡中文字幕在线 | 亚洲精品在线网址 | 国产丝袜视频在线 | 亚洲日本一区二区三区在线不卡 | 深夜福利在线播放 | 日韩成人性视频 | 日韩欧美一区二区三区不卡 | 欧美日韩精品乱国产 | 搞黄视频免费 | 欧美freehdvideos性 | 亚洲天堂久久久 | 久爱午夜精品免费视频 | 在线观看成年人视频 | 免费观看a黄一级视频 | 校园春色 自拍偷拍 | 亚洲色图欧美一区 | 国产1024在线永久免费观看 | 猛h辣h高h文湿重口 美日毛片 | 九九热视频在线免费观看 | 成年人视频在线观看免费 | 91成人免费观看在线观看 | 久久怡红院亚欧成人影院 | 国产一区二区视频在线 | 日韩精品高清自在线 | 欧美videosex极品hd | www.伊人久久 | 黄色片视频免费观看 | 欧美极品另类xxx | 国产成人精品三级在线 | 一级毛片影院 | 黄色的网站在线观看 | 黄色一级一级 | 欧美日韩高清不卡免费观看 | 午夜网站在线观看免费网址免费 | 日日干日日爽 | 91网站网站网站在线 |