大智慧耶稣操盘主图指标
源码
{耶稣操盘指标}
STICKLINE(C>=O ,O ,C ,5 ,1 ),colorred;
STICKLINE(O> C ,C ,O ,5 ,0 ),colorffffcc;
STICKLINE(C>=O ,C ,H ,0.5 ,0 ),colorred;
STICKLINE(C>=O ,O ,L ,0.5 ,0 ),colorred;
STICKLINE(O> C ,C ,L ,0.5 ,0 ),colorffffcc;
STICKLINE(O> C ,O ,H ,0.5 ,0 ),colorffffcc;
ma1:ma(c,20),coloryellow;
ma2:ma(c,200),colorffff00;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); vB1:=FILTER(A1,10); C1:=BACKSET(vB1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); vB2:=FILTER(A2,10); C2:=BACKSET(vB2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD)); B:=REF(C,BARSLAST(LD));
t1:=BARSLAST(HD)
t2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波峰:IF(t1,A,A),ColorFF00FF,POINTDOT;
STICKLINE(t1,A,A,9,0),ColorFF00FF;
波谷:IF(t2,B,B),Color80FF00,POINTDOT;
STICKLINE(t2,B,B,9,0),Color80FF00;
DRAWTEXT(ma1>ref(ma1,1),ma1,'↑'),color4455ef;