[原創]公式編譯 逐K線模式下語法錯誤? [金字塔]
- 咨詢內容:
IF DATATYPE=1
THEN
BEGIN//----------------1分鐘K線---------------拐點ymd:=1140220; 拐點hms:=094500;VERTLINE(DATE=拐點ymd and TIME=拐點hms),colorred,LINEDOT;DRAWNUMBER(DATE=拐點ymd and TIME=拐點hms,h,0,0),align4,color808080;間隔:=6;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,6,0),align4,color808080;間隔:=9;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,9,0),align4,color808080;間隔:=12;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,12,0),align4,color808080;間隔:=14;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,14,0),align4,color808080;間隔:=7;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,7,0),align4,color808080;
- 金字塔客服:
IF DATATYPE=1
THEN
BEGIN//----------------1分鐘K線---------------拐點ymd:=1140220; 拐點hms:=094500;VERTLINE(DATE=拐點ymd and TIME=拐點hms),colorred,LINEDOT;DRAWNUMBER(DATE=拐點ymd and TIME=拐點hms,h,0,0),align4,color808080;間隔:=6;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,6,0),align4,color808080;間隔:=9;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,9,0),align4,color808080;間隔:=12;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,12,0),align4,color808080;間隔:=14;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,14,0),align4,color808080;間隔:=7;pppp:=ref(date,間隔)=拐點ymd and ref(time,間隔)=拐點hms;DRAWICON(pppp,h*1.01,1);VERTLINE(pppp),colorred,LINEDOT;DRAWNUMBER(pppp,h,7,0),align4,color808080;
此主題相關圖片如下:qq圖片20140312155820.jpg
- 用戶回復:
這要編譯短的幾條可以顯示出來用,多了就沒用了。什么原因?還必須在序列計算的情況........郁悶??!
- 網友回復:
是的,在逐k線模式下,ref不能在寫if判斷語句中
處理方法錯誤提示里面有鏈接
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容