如何根據(jù)各種狀況來(lái)加倉(cāng)進(jìn)場(chǎng)或分批出場(chǎng)[MC公式]
-
今天策略天地來(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]加倉(cāng)設(shè)置:
加倉(cāng)效果
同一筆入場(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)效果
同一筆入場(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手
平倉(cāng)效果
不同進(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;
出場(chǎng)效果 :
market, 加倉(cāng), 開(kāi)關(guān), 如何
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容