B1:=EMA(C,2);
紫1:=EMA(B1,2)COLORMAGENTA;
色1:=EMA(紫1,2)COLORMAGENTA;
线1:=EMA(色1,2)COLORMAGENTA;
浮盈线:=EMA(紫1,5) COLORLIMAGENTA,LINETHICK2;
成本线:=EMA(色1,13)COLORYELLOW,LINETHICK2;
限时:=1;
重心:=(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
SJ:=WMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=WMA(0.618*REF(SJ,1)+0.382*SJ,2);
{公式平台,公式源码www.Gspt.com}
DRAWBAND(浮盈线,RGB(128,0,0),成本线,RGB(0,200,0));
STICKLINE(C>=O,H,L,0,1), COLORRED;
STICKLINE(C>=O,C,O,3,0), COLORRED;
STICKLINE(C< O,H,L,0,0), COLORFFFF00;
STICKLINE(C< O,C,O,3,0),COLORFFFF00;
A1:=EMA(C,14),COLORWHITE,LINETHICK1;
吃肉线:(A1-REF(A1,1))/REF(A1,1)*100* 限时,NODRAW;
跌破:=REF(EMA(C,14),1),NODRAW;
距离:=(C-吃肉线)/吃肉线*100,NODRAW;
机构入场:IF(吃肉线>=0,REF(EMA(C,14),BARSLAST(CROSS(吃肉线,0))+1),DRAWNULL)COLORRED,LINETHICK3;
资金出逃:IF(吃肉线<0,REF(EMA(C,14),BARSLAST(CROSS(0,吃肉线))+1),DRAWNULL)COLORGREEN,LINETHICK3;
精选:=浮盈线>REF(浮盈线,1);
规避:=成本线>REF(成本线,1);
STICKLINE(CROSS(吃肉线,0),C,O,3,0),COLORYELLOW;
STICKLINE(CROSS(0,吃肉线),C,O,3,0),COLORGREEN;
DRAWICON(CROSS(ZJ,SJ) AND SJ>70,H*1.03,15);
DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H*1.01,'洗盘')COLORMAGENTA;
DRAWTEXT(CROSS(吃肉线,0) ,L,'←机构进场')COLORYELLOW;
DRAWTEXT(CROSS(0,吃肉线) ,H,'←机构出货')COLORGREEN;
{所属板块、概念}
DRAWTEXT_FIX(1,0.005,0,0,'所属行业:'),COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0,0,HYBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,1,0,'所属概念:'),COLORMAGENTA;
DRAWTEXT_FIX(1,0.06,1,0,GNBLOCK),COLORYELLOW;
【粉丝福利:DRAWNULL,COLORYELLOW;
买卖指标:DRAWNULL,COLORYELLOW;
均为骗子】:DRAWNULL,COLORYELLOW;