[求助]老師請幫忙修改下 [文華財經(jīng)]
-
咨詢內(nèi)容:
?OK:=REF(CLOSE,1);
魚:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100;
RSI4:=SMA(魚,7,1);
HH:=BARSLAST(魚<=15)<5;
白綠線:=SMA(魚,7,1);
深水魚:=CROSS(魚,RSI4) AND 白綠線>15 AND HH;
BU:=深水魚;
BB2:=IF(C>REF((6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1),1),1,IF(C<REF((6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1),1),-1,0));
DD2:=BARSLAST(NOT(BB2=0));
B:=IF(BB2=0,REF(BB2,DD2),BB2);
觸發(fā):BU,NODRAW,COLORRED;
止損:C<REF(O,BARSLAST(BU>0)) AND COUNT(C<REF(O,BARSLAST(BU>0)),BARSLAST(BU>0))=1 AND IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)>0,NODRAW, COLORGREEN;
止盈:(H/REF(C,BARSLAST(BU>0))>=1.05 OR C/REF(C,BARSLAST(BU>0))>=1.05) AND COUNT(止損,BARSLAST(BU>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)),BARSLAST(BU>0))=0,NODRAW, COLORBLUE;
區(qū)間:COUNT(BU,BARSLAST(BU)+1)=1 AND COUNT(止損,BARSLAST(BU>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)), BARSLAST(BU>0)+1)=0,NODRAW,COLOR696960;
結(jié)束:(COUNT(BU,BARSLAST(BU)+1)=1 AND COUNT(止損,BARSLAST(BU>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)), BARSLAST(BU>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1))) OR 止損,NODRAW, COLORGREEN;
STICKLINE(觸發(fā)>0,0,1,4,0),COLORRED;
STICKLINE(止盈>0 ,0.3,0.6,4,0) COLORBLUE;
STICKLINE(結(jié)束>0,0,1,4,0) COLORGREEN;
TS:=BARSLASTCOUNT(止盈>0);
DRAWTEXT(止盈>0,0.5,VAR2STR(TS,0));?
?來源:程序化99
-
文華技術(shù)人員:
?STICKLINE(CLOSE>OPEN,H,LOW,0.3,0 ),COLOR9933FF;?
STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0),COLOR009900;?
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0 ),COLOR0000CC;?
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;?
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF;
{修正價格}
重心:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;
GAO:=HHV(C,60)-LLV(C,60);
RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1);
指導(dǎo)線:重心+GAO*(RSI-0.5),COLORMAGENTA,LINETHICK1;
STICKLINE(CROSS(RSI,0.1),指導(dǎo)線,REF(指導(dǎo)線,1),1,0),COLORYELLOW;
STICKLINE(CROSS(0.9,RSI),指導(dǎo)線,REF(指導(dǎo)線,1),1,0),COLORCYAN;
{趨勢}
平衡:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
紅升:IF(重心>=平衡,平衡,DRAWNULL),COLORRED,LINETHICK2;
藍(lán)降:IF(重心<平衡,平衡,DRAWNULL),COLORBLUE,LINETHICK2;
??
?來源: www.kzuj.com.cn
-
文華客服:
?參考:
OK:=REF(CLOSE,1); 魚:=SMA(MAX(CLOSE-OK,0),7,1)/SMA(ABS(CLOSE-OK),7,1)*100; RSI4:=SMA(魚,7,1); HH:=BARSLAST(魚<=15)<5; 白綠線:=SMA(魚,7,1); 深水魚:=CROSS(魚,RSI4) AND 白綠線>15 AND HH; BU:=深水魚; BB2:=IF(C>REF((6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/(6+5+4+3+2+1),1),1,IF(C<REF((6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/(6+5+4+3+2+1),1),-1,0)); DD2:=BARSLAST(NOT(BB2=0)); B:=IF(BB2=0,REF(BB2,DD2),BB2); 觸發(fā):BU,NODRAW,COLORRED; 止損:C<REF(O,BARSLAST(BU>0)) AND COUNT(C<REF(O,BARSLAST(BU>0)),BARSLAST(BU>0))=1 AND IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)>0,NODRAW, COLORGREEN; 止盈:(H/REF(C,BARSLAST(BU>0))>=1.05 OR C/REF(C,BARSLAST(BU>0))>=1.05) AND COUNT(止損,BARSLAST(BU>0))=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)),BARSLAST(BU>0))=0,NODRAW, COLORBLUE; 區(qū)間:COUNT(BU,BARSLAST(BU)+1)=1 AND COUNT(止損,BARSLAST(BU>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)), BARSLAST(BU>0)+1)=0,NODRAW,COLOR696960; 結(jié)束:(COUNT(BU,BARSLAST(BU)+1)=1 AND COUNT(止損,BARSLAST(BU>0)+1)=0 AND COUNT(CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1)), BARSLAST(BU>0)+1)=1 AND CROSS(0,IF(MA(CLOSE,1)>IF(B=-1,MA(HIGH,6),MA(LOW,6)) ,1,-1))) OR 止損,NODRAW, COLORGREEN; STICKLINE1(觸發(fā)>0,0,1,4,0),COLORRED; STICKLINE1(止盈>0 ,0.3,0.6,4,0), COLORBLUE; STICKLINE1(結(jié)束>0,0,1,4,0), COLORGREEN; TS:=BARSLASTCOUNT(止盈>0); DRAWNUMBER1(止盈>0,0.5,TS,0); ?STICKLINE1(CLOSE>OPEN,H,LOW,0.3,0 ),COLOR9933FF;? STICKLINE1(OPEN>=CLOSE,L,HIGH,0.3,0 ),COLOR66CC33; STICKLINE1(OPEN>=CLOSE ,CLOSE ,OPEN,3,0),COLOR009900;? STICKLINE1(OPEN>=CLOSE ,CLOSE ,OPEN,2,0),COLOR00CC00; STICKLINE1(OPEN>=CLOSE ,CLOSE ,OPEN,1.5,0),COLOR33FF00; STICKLINE1(OPEN>=CLOSE ,CLOSE ,OPEN,1,0),COLOR66FF00; STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099; STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,2,0 ),COLOR0000CC;? STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,1.5,0 ),COLOR0000FF;? STICKLINE1(CLOSE>OPEN,CLOSE,OPEN,1,0 ),COLOR0033FF; {修正價格} 重心:(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1; GAO:=HHV(C,60)-LLV(C,60); RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1); 指導(dǎo)線:重心+GAO*(RSI-0.5),COLORMAGENTA,LINETHICK1; STICKLINE1(CROSS(RSI,0.1),指導(dǎo)線,REF(指導(dǎo)線,1),1,0),COLORYELLOW; STICKLINE1(CROSS(0.9,RSI),指導(dǎo)線,REF(指導(dǎo)線,1),1,0),COLORCYAN; {趨勢} 平衡:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55); 紅升:IF(重心>=平衡,平衡,NULL),COLORRED,LINETHICK2; 藍(lán)降:IF(重心<平衡,平衡,NULL),COLORBLUE,LINETHICK2; ?
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 或微信:cxhjy888 進(jìn)行 有償 編寫!(不貴!點擊查看價格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容