几位朋友让主图也发一下,奉上。
说明:源码非原创,自己整理组合。也要花费精力,谢谢大家支持
MAA:=MA(CLOSE,20);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=LLV(DX,2)=LLV(DX,7) AND COUNT(DX 0,2) AND CROSS(DX,MA(DX,2));
加:=MAA =REF(MAA,3) AND CROSS(CLOSE,MAA);
SC:=加 AND 买;
DRAWICON(SC,L,24);
{牛熊线}
N:=BARSSINCEN(L=LLV(L,60),20);
压力线1:=HHV(H,60);
支撑线1:=CONST(LLV(C,120));
A18:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)/8+支撑线1,DRAWNULL),COLORBLUE;
A26:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*2/8+支撑线1,DRAWNULL),COLORLIRED;
A45:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*3/8+支撑线1,DRAWNULL),COLORRED;
A63:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*4/8+支撑线1,DRAWNULL),COLORBROWN;
A71:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*5/8+支撑线1,DRAWNULL),COLORBROWN;
A75:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*6/8+支撑线1,DRAWNULL),COLORBROWN;
A82:IF(压力线1=REF(压力线1,1),(压力线1-支撑线1)*7/8+支撑线1,DRAWNULL),COLORBROWN;
A90:压力线1,COLORBROWN;
A0:支撑线1,COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=10,A45*0.99,'A45红线为牛熊关口,上穿看多,下穿看空'),COLORMAGENTA;
反弹线:CONST(压力线1/3);
M5:=MA(C,5),COLORWHITE;
IF(CODELIKE('000622'),5.50,DRAWNULL);
STICKLINE(A90 REF(A90,1),A90,A0,0,-1),COLORRED;
DRAWKLINE(H,O,L,C);