通达信分时图均线公式
BGTYU:=IF(DATEEMA(C,60) ,80,85,2.0,0),COLORRED;
STICKLINE(EMA(C,10)1.003 ,80,85,2.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),80,'买进'),COLORYELLOW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.0029),88,9);
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),85,'观察分时量'),COLORYELLOW;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.004),92,'超强'),COLORYELLOW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.004),90,9);P:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),3);
风警值:P+100,COLORYELLOW,LINETHICK2;
顶:=95,COLORFF0000,LINETHICK4;
风险区:=90,COLORRED,LINETHICK2;
安全区:=10,COLORGREEN,LINETHICK2;
底:=5,COLOR004000,LINETHICK4;
多方:EMA(100-3*SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((LLV(LOW,75)-CLOSE)/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1)-100,3),LINETHICK2,COLORRED;
{MA(多方,3);}
空方:EMA(100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,27,1),15,1),3),LINETHICK2,COLORWHITE;
投机线:=EMA(3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1),3),COLOR00FFFF;
V12:=(投机线-REF(投机线,1))/REF(投机线,1)*100;
准备现金: STICKLINE(投机线13,0,35,6,0),COLOR0099FF;
BBK:= (投机线13) AND FILTER((投机线13),10) ;
DRAWTEXT (BBK,40,'买股'),COLOR0099FF;
见顶清仓: STICKLINE(投机线>=95 AND V12,90,99,4,0),COLORYELLOW;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
主力撤:IF(V4=0,V4,0),NODRAW;
顶部:IF(CROSS(多方,99) AND 投机线>=95 OR 多方>=90 AND CROSS(多方,投机线) OR MA(多方,3)>=105,90,100),COLOR00AA00;
底部:IF(投机线100 AND CLOSE>REF(CLOSE,1),A1,0),0);
A3:=SUM(IF(A1>100 AND CLOSEREF(CLOSE,1),A1,0),0);
A5:=SUM(IF(A10 AND REF(主力差,1)=0,-C*0.35,'▼◆机构'),COLORWHITE;
DRAWTEXT(散户差>0 AND REF(散户差,1)=0,-C*0.15,'▽散户'),COLORWHITE;
机构加仓:(主力差>=REF(主力差,1)+1.8)*30,LINETHICK1,COLORMAGENTA;
BB:=机买/机卖;
BBB:=机构加仓/REF(机构加仓,1);
DRAWICON(BB/REF(BB,1)>1.02 AND BB>5 AND BBB=1,1,3);
DRAWICON(BB/REF(BB,1)>1.03 AND BB>9 AND BBB/REF(BBB,1)>0.99,10,1);
DRAWICON(BB/REF(BB,1)>1.03 AND BB>9 AND BBB/REF(BBB,1)>0.99,15,1);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>0.99,20,13);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.0,30,1);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.0,40,1);
DRAWICON(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.1,18,13);
DRAWTEXT(BB/REF(BB,1)>1.05 AND BB>9 AND BBB/REF(BBB,1)>1.1,30,'买')COLORYELLOW;
DRAWTEXT(BB>100 AND BBB/REF(BBB,1)>1.1,30+BB,'全买')COLORYELLOW;
STICKLINE(BB>100 AND BBB/REF(BBB,1)>1.1,0,30,1,0)COLORRED;
机构买:CROSS(机买,机卖);
DRAWTEXT(机买,机买,'上穿买'),COLORMAGENTA;
机构卖:CROSS(机卖,机买);
DRAWTEXT(机卖,机买,'☆'),COLORWHITE;DRAWTEXT_FIX(C>O,0.01,0.9,0,' WWW. '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'交易策略'),COLORRED;