大智慧八仙操盘公式
YX:=(2*C+H+L+O)/5;
B:EMA(EMA(YX*V,9)/EMA(V,9),9),COLOR00FFFF,LINETHICK2;
D:EMA(YX,3),COLOR0000FF,LINETHICK2;
FILLRGN(B>D,B,D),color4e4e4e;
FILLRGN(B<D,D,B),colorff00ff;
{K线}
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),LOW,HIGH,0.1,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN and CLOSE>REF(CLOSE,1),OPEN,CLOSE,7,0),colorred;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),LOW,HIGH,0.1,0),colorcyan;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN and CLOSE<=REF(CLOSE,1),OPEN,CLOSE,7,0),colorcyan;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
aaa:=(ma(close,13)+ma(close,17))/2;
ccc:=(std(close,13)+std(close,17))/2;
bbb:=aaa+2.1*ccc;
ddd:=aaa+0.72*ccc;
zzz:=if(ccc>1.88,ma(ddd,3),ddd);
平衡:zzz,color00ff00 ,LINEDOT;
止赢:zzz*1.1,COLORRED,LINEDOT;
了结:zzz*1.05,coloryellow,LINEDOT;
回档:zzz*0.95,colorffff00,LINEDOT;
反弹:zzz*0.9,COLORf00ff0,LINEDOT;
DRAWTEXT(BARSTATUS=2,平衡,' 平衡'),ALIGN0,color00ff00,LINETHICK2;
DRAWTEXT(BARSTATUS=2,止赢,' 止赢'),ALIGN0,COLORRED,LINETHICK2;
DRAWTEXT(BARSTATUS=2,了结,' 了结'),ALIGN0,coloryellow,LINETHICK2;
DRAWTEXT(BARSTATUS=2,回档,' 回档'),ALIGN0,colorffff00,LINETHICK2;
DRAWTEXT(BARSTATUS=2,反弹,' 反弹'),ALIGN0,COLORf00ff0,LINETHICK2;
高抛:1.175*MA(FORCAST(CLOSE,2),34),COLORRED,LINETHICK2;
低吸:0.812*MA(FORCAST(CLOSE,2),34),COLOR0077ff,LINETHICK1;
DRAWTEXT(BARSTATUS=2,高抛,' 高抛'),ALIGN0,COLORRED,LINETHICK2;
DRAWTEXT(BARSTATUS=2,低吸,' 低吸'),ALIGN0,COLOR0077ff,LINETHICK2;