如何根據(jù)各種狀況來(lái)加倉(cāng)進(jìn)場(chǎng)或分批出場(chǎng)
作者:MC 來(lái)源:cxh99.com 發(fā)布時(shí)間:2014年07月31日
-
今天策略天地來(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)開關(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)(按進(jìn)場(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), 開關(guān), 如何