您現(xiàn)在的位置:程序化交易>> 期貨公式>> (MC)multicharts>> MC公式>>正文內(nèi)容

MC加倉(cāng)與分批出場(chǎng)策略源碼 如何根據(jù)各種狀況來(lái)加倉(cāng)進(jìn)場(chǎng)或分批出場(chǎng),[MC公式]

  • 內(nèi)容:

    今天策略天地來(lái)教教大家如何根據(jù)各種狀況來(lái)加倉(cāng)進(jìn)場(chǎng)或分批出場(chǎng),

    1.相同條件下的加倉(cāng):if  condition1  thenbuy next bar at market;加倉(cāng)設(shè)置
    加倉(cāng)效果(這個(gè)的condition1=c>o):


    2.不同條件加倉(cāng)if  condition1  thenbuy(“entry”) next bar at market;if  condition2  thenbuy(“jiacang1”) next bar at market;if  condition3  thenbuy(“jiacang2”)  next bar at market;  這個(gè)的condition1 =c>o and marketposition=0condition2 =c>o and c[1]>o[1]condition3 = c>o and c[1]>o[1] and c[2]>o[2]


    分批出場(chǎng)設(shè)置:// www.tumamayizhan.com
    同一筆入場(chǎng)的多手持倉(cāng)的相同條件的分筆出場(chǎng)分批出場(chǎng)開(kāi)關(guān):SameExitFromOneEntryOnceif c>o thenbuy 3 shares  next bar at market;[SameExitFromOneEntryOnce = false];if c<o thensell 1 Contracts Next Bar At market;


    同一筆入場(chǎng)的多手持倉(cāng)的不同條件的分筆出場(chǎng)if condition1 thensell 1 Contracts total Next Bar At market;if condition2 thensell 1 Contracts total Next Bar At market;if condition3  thensell 1 Contracts total Next Bar At market;通過(guò)total 每次固定只平1手

     
  • 不同進(jìn)場(chǎng)或不同條件不同入場(chǎng)名稱(chēng)的分批出場(chǎng)(按進(jìn)場(chǎng)名稱(chēng)出場(chǎng)),if  c>o and marketposition=0   thenbuy ("entry") next bar at market;if  c>o and c[1]>o[1]   thenbuy ("jiacang1") next bar at market;if  c>o and c[1]>o[1] and c[2]>o[2]  thenbuy ("jiacang2")  next bar at market;if c[1]<o[1] then beginsell from entry("entry") next bar at market;sell from entry("jiacang1") next bar at market;sell from entry("jiacang2") next bar at market;end;// www.tumamayizhan.com

     

 

有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友

可聯(lián)系技術(shù)人員 QQ: 1145508240  有需要幫忙請(qǐng)點(diǎn)擊這里留言?。。? title=進(jìn)行 有償 編寫(xiě)!不貴!點(diǎn)擊查看價(jià)格!

 


【字體: 】【打印文章】【查看評(píng)論

相關(guān)文章

    沒(méi)有相關(guān)內(nèi)容
  主站蜘蛛池模板: 伊人激情久久综合中文字幕| 国产欧美一区二区精品久久久| 久久久久88色偷偷| 欧美激情乱人伦| 又粗又猛又黄又爽无遮挡| 亚洲国产最大av| 天堂资源bt在线官网| 久久久久久a亚洲欧洲aⅴ| 欧美另类videosgratis妇| 免费看黄a级毛片| 韩国免费三片在线视频| 国产精品视频全国免费观看| 一级毛片不卡免费看老司机| 日韩精品一区二区三区在线观看| 亚洲综合色区中文字幕| 美女精品永久福利在线| 国产成人久久综合二区| 91caoprom| 好大好硬好爽好舒服| 久久久久久青草大香综合精品| 欧美亚洲天堂网| 人妻无码中文字幕| 老色鬼永久精品网站| 国产成人综合久久亚洲精品| 92国产精品午夜福利| 孩交精品xxxx视频视频| 久久一区二区三区99| 最近更新中文字幕第一电影| 亚洲熟妇AV乱码在线观看| 精品国产_亚洲人成在线| 国产亚洲婷婷香蕉久久精品| 婷婷六月天在线| 国产青草视频在线观看| 一本久久a久久精品亚洲| 日本一区二区三区久久| 亚洲av午夜成人片精品网站 | 好男人好资源影视在线4| 久久久国产视频| 最近免费中文字幕大全免费版视频| 亚洲日韩欧洲无码av夜夜摸| 狠狠色狠狠色综合日日五|