股神必勝
{ 股神必勝 }
{INPUT:N(13,1,100),M(55,1,100),P(3,1,100); }
n:=13;
m:=55;
p:=3;
DRAWGBKLAST(L,STRIP(RGB(0,0,205),RGB(47,79,79),0));
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_回擋;
(南方財富網(wǎng)SOUTHMONEY.COM)