此主題相關(guān)圖片如下:2013111413453565519.png
還是這張圖,沒(méi)有搞清楚
m為大于開(kāi)盤價(jià)100點(diǎn)后的最高價(jià),m2為最高點(diǎn)后的回撤點(diǎn)數(shù),當(dāng)m2大于從最高價(jià)到100點(diǎn)的部分(紅色段)的1/2時(shí),平倉(cāng)。
variable:m=0,m2=0;
KP:=callstock(stklabel,vtopen,6);
if h>m then m:=h;
if m>KP+100 and m2>(m-KP-100)/2 then sell();
這段代碼肯定不對(duì),但大概表達(dá)了這個(gè)意思,請(qǐng)改正一下
[此貼子已經(jīng)被作者于2013/11/20 11:05:23編輯過(guò)]
variable:m=0;
oo:=valuewhen(todaybar=1,open);
if todaybar=1 then m:=open;
if h>m then m:=h;
if m>oo+100 and m2>(m-(oo+100))/2 then sell;
variable:m=0;
oo:=valuewhen(todaybar=1,open);
if todaybar=1 then m:=open;
if h>m then m:=h;
if m>oo+100 and m2>(m-(oo+100))/2 then sell;
為啥不能callstock直接調(diào)用當(dāng)日開(kāi)盤價(jià)呢?
這個(gè)M2不用做什么說(shuō)明嗎,直接varibable:m2=0 后就能當(dāng)回撤點(diǎn)數(shù)用?
M2需要自行定義
callstock也可以,我的也是開(kāi)盤價(jià),這兩個(gè)是一個(gè)意思
M2需要自行定義
callstock也可以,我的也是開(kāi)盤價(jià),這兩個(gè)是一個(gè)意思
問(wèn)題是 我就是不知道怎么定義,如何讓它自動(dòng)判斷回撤部分的點(diǎn)數(shù)是否>(m-(oo+100))/2 呢
[此貼子已經(jīng)被作者于2013/11/20 11:51:31編輯過(guò)]