源码
{ 股神必胜 }
{INPUT:N(13,1,100),M(55,1,100),P(3,1,100); }
n:=13;
m:=55;
p:=3;
RSV1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
RSV2:=(CLOSE-LLV(LOW,M))/(HHV(HIGH,M)-LLV(LOW,M))*100;
J1:=3*SMA(RSV1,P,1)-2*SMA(SMA(RSV1,P,1),P,1);
J2:=3*SMA(RSV2,P,1)-2*SMA(SMA(RSV2,P,1),P,1);
支撑位:IF(CROSS(J1,J2),LOW,REF(LOW,BARSLAST(CROSS(J1,J2))));
压力位:IF(CROSS(J2,J1),HIGH,REF(HIGH,BARSLAST(CROSS(J2,J1))));
YC_VAR1:=EMA(CLOSE,5);
YC_VAR2:=EMA(CLOSE,10);
YC_VAR3:=EMA(CLOSE,20);
YC_VAR4:=EMA(CLOSE,30);
YC_VAR5:=(YC_VAR1+YC_VAR2+YC_VAR3+YC_VAR4)/4;
YC_VAR6:=(YC_VAR5-REF(YC_VAR5,15))/REF(YC_VAR5,15)*100;
YC_买进:=((CLOSE-REF(MA(CLOSE,6),1))/6+MA(CLOSE,6))*1.004;
买进条件:CROSS(CLOSE,YC_买进) AND YC_买进>REF(YC_买进,1),LINETHICK0;
YC_加仓:=((CLOSE-REF(MA(CLOSE,18),1))/18+MA(CLOSE,18))*1.004;
加仓条件:CROSS(CLOSE,YC_加仓) AND YC_加仓>REF(YC_加仓,1),LINETHICK0;
YG_回挡:=SMA(HIGH,21,2) * 1.05;
YG_卖出:=(CLOSE < REF(CLOSE,1) AND HIGH > YG_回挡) AND CLOSE < YG_回挡;
◆满仓:买进条件 AND 加仓条件,LINETHICK0;
STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),H,O,0,0),COLORblue;
STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),C,L,0,0),COLORblue;
STICKLINE(YC_VAR6<1*REF(YC_VAR6,1),C,O,8,1),COLORblue;
STICKLINE(C<=O,C+C/500,O-O/500,6,0),COLORgreen;
STICKLINE(C>O AND 加仓条件,C,H,0,0),COLORYELLOW;
STICKLINE(C>O AND 加仓条件,L,O,0,0),COLORYELLOW;
STICKLINE(C>O AND 加仓条件,C,O,8,0),COLORYELLOW;
STICKLINE(C>O AND 买进条件,C,H,0,0),COLORRED;
STICKLINE(C>O AND 买进条件,L,O,0,0),COLORRED;
STICKLINE(C>O AND 买进条件,C,O,8,0),COLORRED;
STICKLINE(C>O AND 加仓条件 AND 买进条件,C,H,0,0),ColorFF0080;
STICKLINE(C>O AND 加仓条件 AND 买进条件,L,O,0,0),ColorFF0080;
STICKLINE(C>O AND 加仓条件 AND 买进条件,C,O,8,0),ColorFF0080;
STICKLINE(C
STICKLINE(C
STICKLINE(C
DRAWTEXT(买进条件 AND 加仓条件 <>1,L/1.01,'买'),COLORRED;
DRAWTEXT(买进条件 AND 加仓条件 <>1,L/1.03,'进'),COLORRED;
DRAWTEXT(加仓条件 AND 买进条件 <>1,L/1.01,'加'),COLORYELLOW;
DRAWTEXT(加仓条件 AND 买进条件 <>1,L/1.03,'仓'),COLORYELLOW;
DRAWTEXT(加仓条件 AND 买进条件,L/1.01,'◆'),ColorFF0080;
DRAWTEXT(加仓条件 AND 买进条件,L/1.03,'满'),ColorFF0080;
DRAWTEXT(加仓条件 AND 买进条件,L/1.05,'仓'),ColorFF0080;