自用主图源码(操盘线)
-
相关简介:C/C++ Code 复制内容到剪贴板 Y:=(H+L)/2; RED:=SMA(Y,8,1); KU1:=IF(H=HHV(H,3),1,0); KD1:=IF(L=LLV(L,3),1,0); UL:=IF(REF(KU1,2)=1ANDREF(KU1,1)=0ANDKU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1ANDREF(KU1,1)=0ANDKU1=0))); DL:=IF(REF(KD1,2)=1ANDREF(KD1,
-
文章来源:择股网作者:股海网发布时间:2009-09-02浏览次数:
C/C++ Code复制内容到剪贴板
- Y:=(H+L)/2;
- RED:=SMA(Y,8,1);
- KU1:=IF(H=HHV(H,3),1,0);
- KD1:=IF(L=LLV(L,3),1,0);
- UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(H,2),REF(H,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));
- DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(L,2),REF(L,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));
- R2:=REF(RED,5);
- 压力:IF(H>=R2,UL,REF(UL,BARSLAST(H>R2))),COLORMAGENTA,linethick0;
- 支撑:IF(L<=R2,DL,REF(DL,BARSLAST(L<=R2))),COLORCYAN,linethick0;
- STICKLINE(BARSLAST(ABS(压力-REF(压力,1)))<BARSLAST(c>压力 AND REF(c,1)<REF(压力,1)),压力,压力,3,1),COLORMAGENTA;
- STICKLINE(BARSLAST(ABS(支撑-REF(支撑,1)))<BARSLAST(c<支撑 AND REF(c,1)>REF(支撑,1)),支撑,支撑,3,1),COLORCYAN;
- W1:=C=HHV(C,10);
- W2:=BARSLAST(W1);
- W3:=IF(W2>0,REF(C,W2),REF(C,W2));
- W4:=CROSS(C,REF(W3,1));
- ZHUIA:=W4 AND COUNT(W4,5)=1;
- STICKLINE(ZHUIA>0,O,C,3,0),COLORYELLOW;
- stickline(L>REF(H,1),L,REF(H,1),50,1001),colorred;
- DRAWTEXT(L>REF(H,1),REF(H,1),NUMTOSTRN(REF(H,1),2)+'-'+NUMTOSTRN(L,2)),COLORred;
- stickline(REF(L,1)>H,ref(L,1),H,50,1001),colorgreen;
- DRAWTEXT(REF(L,1)>H,REF(L,1),NUMTOSTRN(ref(l,1),2)+'-'+NUMTOSTRN(h,2)),COLORgreen;
- 变:EMA(CLOSE,5),LINETHICK2,COLORRED;
- partline(变,变>=ref(变,1),rgb(255,0,0),变<ref(变,1),rgb(0,255,255)),linethick2;
- 操盘线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK5;
- partline(操盘线,操盘线>=ref(操盘线,1),rgb(255,0,0),操盘线<ref(操盘线,1),rgb(0,255,0)),linethick3;
- DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,low*0.98,1);
- DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,high*1.02,2);
上一篇:通达信公式(量价线)选股
下一篇:大跌过后还是研究点传统指标吧。变色MACD源码