請教關于回撤 [金字塔]
- 咨詢內容:
此主題相關圖片如下:2013111413453565519.png還是這張圖,沒有搞清楚
m為大于開盤價100點后的最高價,m2為最高點后的回撤點數,當m2大于從最高價到100點的部分(紅色段)的1/2時,平倉。
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();這段代碼肯定不對,但大概表達了這個意思,請改正一下
[此貼子已經被作者于2013/11/20 11:05:23編輯過] - 金字塔客服:
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;
- 用戶回復:
以下是引用jinzhe在2013/11/20 11:16:56的發言:
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直接調用當日開盤價呢?
這個M2不用做什么說明嗎,直接varibable:m2=0 后就能當回撤點數用?
- 網友回復:
M2需要自行定義
callstock也可以,我的也是開盤價,這兩個是一個意思
- 網友回復:
以下是引用jinzhe在2013/11/20 11:27:39的發言:
M2需要自行定義
callstock也可以,我的也是開盤價,這兩個是一個意思
問題是 我就是不知道怎么定義,如何讓它自動判斷回撤部分的點數是否>(m-(oo+100))/2 呢
[此貼子已經被作者于2013/11/20 11:51:31編輯過]
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容