 | |  |  |
{主图解盘}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DRAWTEXT(FILTER(d>80,6),h*1.018,'d>80');
DRAWTEXT(FILTER(cross(k,d) and d<26,6),h*0.95,'KD低位金*'),colorffcccc;
stickline(FILTER(cross(k,d) and d<26,6),h*0.97,h*0.95,4,0),colorffcccc;
MA7:MA(c,7),COLORWHITE;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
DRAWTEXT(FILTER(cross(DIFF,DEA) and DEA<0,6),l-0.12,'MACD低位金*'),color00ff00;
stickline(FILTER(cross(DIFF,DEA) and DEA<0,6),l-0.02,l-0.1,4,0),color00ff00;
DRAWTEXT(FILTER(cross(DIFF,DEA) and DEA>0,13),h+0.15,'MACD高位金*'),colorblue;
stickline(FILTER(cross(DIFF,DEA) and DEA>0,13),h+0.02,h+0.12,4,0),colorblue;
DRAWTEXT(FILTER(cross(MACD,0),13),L*0.95,'MACD上穿零'),colorwhite;
stickline(FILTER(cross(MACD,0),13),L*0.97,l*0.95,4,0),colorwhite;
ROC:=(CLOSE-REF(CLOSE,21))/REF(CLOSE,21)*100;
DRAWTEXT(FILTER(cross(ROC,0),6),L-0.15,'ROC上穿零'),colorff00ff;
stickline(FILTER(cross(ROC,0),6),L-0.02,l-0.15,4,0),colorff00ff;
MA30:MA(C,30),coloryellow;
DRAWTEXT(MA30>REF(MA30,1) AND MA30<REF(MA30,2),h+0.17,'MA30拐头'),coloryellow;
stickline(MA30>REF(MA30,1) AND MA30<REF(MA30,2),h+0.02,h+0.12,4,0),COLORYELLOW;
MA90:MA(C,90),colorFF00FF;
DRAWTEXT(MA90>REF(MA90,1) AND MA90<REF(MA90,2),MA90*0.98,'MA90拐头'),color0099FF;
STICKLINE(MA90>REF(MA90,1) AND MA90<REF(MA90,2),MA90*1.0,MA90*0.98,4,0),COLOR0099FF; |
| |  | |  |
|