跨周期引用 [文華財(cái)經(jīng)]
作者:文華財(cái)經(jīng) 來(lái)源:cxh99.com 發(fā)布時(shí)間:2019年03月23日 點(diǎn)擊數(shù):
614
【收藏到本網(wǎng)的會(huì)員中心】
-
咨詢(xún)內(nèi)容:
老師:一個(gè)指標(biāo)里,可否引用2個(gè)周期?
ZB DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9);?TJ1:DIFF>REF(DIFF,1);TJ2:DIFF<REF(DIFF,1);TJ11:CROSS(DIFF,REF(DIFF,1))TJ22:CROSSDOWN(DIFF,REF(DIFF,1))
#IMPORT[MIN,30,ZB] AS VARD:=VAR.TJ1;K:=VAR.TJ2;
OPENMINUTE>5&&D&&CROSS(DIFF2,REF(DIFF2,1))&&DIFF2<0&&(BKVOL=0||(BKVOL>0&&C<BKPRICE)),BPK(1);CROSSDOWN(3分鐘DIFF下拐),SP(BKVOL);
OPENMINUTE>5&&K&&CROSSDOWN(DIFF2,REF(DIFF2,1))&&DIFF2>0&&(SKVOL=0||(SKVOL>0&&C>SKPRICE)),SPK(1);CROSS(3分鐘DIFF上拐),BP(SKVOL);TRADE_AGAIN(10);CLOSEMINUTE<=10,CLOSEOUT;? ??
?來(lái)源:程序化99
-
文華技術(shù)人員:
?可以的,最多可以引用6個(gè)周期 ,格式參考:
#IMPORT[MIN,30,ZB] AS VAR1 A1:=VAR1.A; #IMPORT[MIN,3,ZB] AS VAR2 A2:=VAR2.A;?
?來(lái)源: www.kzuj.com.cn
-
文華客服:
?老師:我是新手,看不懂怎樣改?根據(jù)一樓的要求,寫(xiě)個(gè)完整的
?
-
網(wǎng)友回復(fù):
以產(chǎn)緊固件的1周期拐頭,參考:
被引用NN
DIFF:EMA(CLOSE,12)-EMA(CLOSE,27);DEA:EMA(DIFF,9);?TJ1:DIFF>REF(DIFF,1);TJ2:DIFF<REF(DIFF,1);TJ11:CROSS(DIFF,REF(DIFF,1));TJ22:CROSSDOWN(DIFF,REF(DIFF,1));X:DIFF<REF(DIFF,1)&&REF(DIFF,1)>REF(DIFF,2),NODRAW;S:DIFF<REF(DIFF,1)&&REF(DIFF,1)<REF(DIFF,2),NODRAW;
主模型:
#IMPORT[MIN,30,NN] AS VARD:=VAR.TJ1;K:=VAR.TJ2;
#IMPORT[MIN,3,NN] AS VAR1X:=VAR.X;S:=VAR.S;
OPENMINUTE>5&&D&&CROSS(DIFF2,REF(DIFF2,1))&&DIFF2<0&&(BKVOL=0||(BKVOL>0&&C<BKPRICE)),BPK(1);X,SP(BKVOL);
OPENMINUTE>5&&K&&CROSSDOWN(DIFF2,REF(DIFF2,1))&&DIFF2>0&&(SKVOL=0||(SKVOL>0&&C>SKPRICE)),SPK(1);S,BP(SKVOL);TRADE_AGAIN(10);CLOSEMINUTE<=10,CLOSEOUT;
有思路,想編寫(xiě)各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 或微信:cxhjy888 進(jìn)行 有償 編寫(xiě)!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒(méi)有相關(guān)內(nèi)容