缠学发财版 通达信主图指标 源码 贴图
MA5E:MA(C,5),COLORF00FF0;MA10:MA(C,10),COLORYELLOW;
MA21:MA(C,21),COLORE66878;
MA30:MA(C,30),COLORWHITE;
MAIRU:=XMA((C+H+O+L)/4,32)*(1-100/1000),COLORMAGENTA,POINTDOT;
MAICHU:=XMA((C+H+O+L)/4,20)*(1+80/1000),COLORGREEN,POINTDOT;
买入:IF(CURRBARSCOUNT =34,MAIRU,DRAWNULL),COLORMAGENTA,POINTDOT;
卖出:IF(CURRBARSCOUNT =34,MAICHU,DRAWNULL),COLORGREEN,POINTDOT;
PRICE:=IF(CAPITAL 0,AMOUNT/(V*100),CLOSE);
买卖点1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
买卖点2:=2*ABS(买卖点1);
买卖点3:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
情报:= 100-买卖点3;
红军:= IF(买卖点1 0,买卖点1,0);
绿军:= IF(买卖点1 0,买卖点2,0);
买:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)
-3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
DRAWTEXT(CROSS(买,8),L*0.98,'B'),COLOR0099FF;
{起涨点}
EMA14:=EMA(PRICE,14);
起涨点:=CROSS(EMA14-REF(EMA14,1),0);
STICKLINE(起涨点,CLOSE,OPEN,3,0 ),COLOR0000CC;
STICKLINE(起涨点,CLOSE,OPEN,2,0 ),COLOR0033FF;
STICKLINE(起涨点,LOW,HIGH,0,0 ),COLOR0033FF;
SHORT:=7;LONG:=19;
T:=PERIOD;
D:=IF(T=0,30,{1F}
IF(T=1,25,{5F}
IF(T=8,25,{多分钟}
IF(T=2,20,{15F}
IF(T=3,20,{30F}
IF(T=4,20,{60F}
IF(T=5,10,{日}
IF(T=6,10,{周}
IF(T=7,10,{月}
IF(T=9,10,{多日}
IF(T=10,10{季},10{年})))))))))));
RMA:=EMA(CLOSE,SHORT),COLORLIGRAY;
NMA:=EMA(CLOSE,LONG),COLORMAGENTA;
RISK:=IF(NMA RMA,NMA,DRAWNULL),COLORGREEN;
UP:DRAWLINE(L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1)
AND L=LLV(L,D) AND RMA =NMA,L,H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA =NMA,H,0),COLOR0000BB,LINETHICK2;
DOWN:DRAWLINE(H=HHV(H,BARSLAST(CROSS(RMA,NMA))+1) AND H=HHV(H,D) AND RMA =NMA,H,L=LLV(L,BARSLAST(CROSS(NMA,RMA))+1) AND L=LLV(L,D) AND RMA =NMA,L,0),COLOR00BB00,LINETHICK2;
DRAWTEXT_FIX(1,0.50,5,0,'发财版☆杰'),COLOR00FFFF;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
DRAWICON(CROSS(X2,X3),L*0.98,'38');
DRAWICON(CROSS(X3,X2),H*1.02,'39');