通达信春秋凸量系统 承诺的源码源码公开源码
感谢各位观注春秋的朋友,《春秋凸量系统》贴子已加精,承诺大家的源码我贴上来。
本源码中调用的 cpx.cpx 值,请在下载指标《cpx》后安装才能正常使用!!
《春秋凸量系统》源码:
input:n(1,100,25);
AA:=HOD(V,N);
BB:=LOD(V,N);
AA30:=MA(C,30);
LTS:=BARSLAST(AA =4)+1;
TJ1:=FILTER(AA =5 AND REF(LTS,1) =9 AND C O AND (WINNER(C) =0.85 OR WINNER(C)-REF(WINNER(C),1) =0.3),5);
TJ2:=AA =5 AND REF(LTS,1) =9 AND C O AND CROSS(C,AA30);
ZT:=IF(CLOSE/REF(C,1) =1.099 AND CLOSE/REF(C,1) =1.13 AND H==C,1,-1);
BU:=(TJ1 OR TJ2 ) AND ABS(C-AA30)/AA30*100 =30 ;
触发:BU,NODRAW,COLORRED;
止损柱:C REF(O,BARSLAST(BU 0)) AND COUNT(C REF(O,BARSLAST(BU 0)),BARSLAST(BU 0))=1,NODRAW, COLORGREEN;
止盈柱:CROSS(0,CPX.CPX) AND COUNT(CROSS(0,CPX.CPX),BARSLAST(BU 0))=1 AND COUNT(止损柱=1,BARSLAST(BU 0))=0 AND COUNT(BU,BARSLAST(BU)+1) =1,NODRAW, COLORBLUE;
区间:COUNT(BU,BARSLAST(BU)+1)=1 AND COUNT(止损柱,BARSLAST(BU 0)+1)=0 AND COUNT(止盈柱, BARSLAST(BU 0)+1)=0,NODRAW,COLOR696960;
止损价:IF(COUNT(BU 0,BARSLAST(BU 0)+1)=1 AND (区间 0 OR CROSS(0.5,区间)),REF(O,BARSLAST(BU 0)),DRAWNULL),NODRAW;
STICKLINE(区间 0,0,1,4,0),COLOR696960;
STICKLINE(触发 0,0,1,4,0),COLORRED;
STICKLINE(止盈柱 0 ,0,1,4,0) COLORBLUE;
STICKLINE(止损柱=1 AND COUNT(止盈柱 0,BARSLAST(触发 0))=0,0,1,4,0) COLORGREEN;
DRAWTEXT_FIX(V 0,0.12,0.05,2,'欢迎使用春秋作品')COLORRED;