請(qǐng)寫(xiě)一個(gè)跨周期程序 [博易POBO]
咨詢內(nèi)容:
DEA ?: EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
A1:=REF(HOUR,1)=15 AND HOUR<>15;
B1:=BARSLAST(A1)+1;
AA1:=REF(MINUTE,1)=0 AND MINUTE<>0;
BB1:=BARSLAST(AA1)+1;
C1:STKINDI('',6,'macd.diff',12,26,9),NODRAW;
C2:STKINDI('',5,'macd.diff',12,26,9),NODRAW;
C3:REF(C1,B1),NODRAW;
C4:REF(C2,BB1),NODRAW;
CC1:=C1>C3;
CC2:=C2>C4;
DRAWTEXT(DATAPERIOD=1 AND CROSS(DIFF,DEA) AND CC1 AND CC2,DIFF*0.997,'做多'),COLORRED; 來(lái)源 程序化久久網(wǎng)
請(qǐng)寫(xiě)一個(gè)跨周期程序
我想在1分鐘圖表上寫(xiě)入一個(gè)多頭的條件:即如果當(dāng)下日線周期的diff大于昨天的diff,同時(shí)當(dāng)下60分鐘周期的diff大于前一次60分鐘的diff時(shí),只要1分鐘的diff金叉dea就做多。我寫(xiě)了多次都沒(méi)有成功,請(qǐng)老師幫忙。?
?來(lái)源:程序化99網(wǎng)( www.kzuj.com.cn )
博易技術(shù)人員: DIFF : EMA(CLOSE,12) - EMA(CLOSE,26);DEA ?: EMA(DIFF,9);
MACD : 2*(DIFF-DEA), COLORSTICK;
A1:=REF(HOUR,1)=15 AND HOUR<>15;
B1:=BARSLAST(A1)+1;
AA1:=REF(MINUTE,1)=0 AND MINUTE<>0;
BB1:=BARSLAST(AA1)+1;
C1:STKINDI('',6,'macd.diff',12,26,9),NODRAW;
C2:STKINDI('',5,'macd.diff',12,26,9),NODRAW;
C3:REF(C1,B1),NODRAW;
C4:REF(C2,BB1),NODRAW;
CC1:=C1>C3;
CC2:=C2>C4;
DRAWTEXT(DATAPERIOD=1 AND CROSS(DIFF,DEA) AND CC1 AND CC2,DIFF*0.997,'做多'),COLORRED; 來(lái)源 程序化久久網(wǎng)
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 1145508240 或微信號(hào):cxh99cxh99 進(jìn)行 有償收費(fèi) 編寫(xiě)!(注:由于人數(shù)限制,QQ或微信請(qǐng)選擇方便的一個(gè)聯(lián)系我們就行,謝謝您!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容