双线换庄主图公式
三条线的用法,指标已经注解,结合股价走势,应该不难理解。
{MA副图}
STICKLINE(C>=REF(C,1),L,H,0,0),COLOR0000FF;
STICKLINE(C>=REF(C,1),C,O,8,1),COLOR0000FF;
STICKLINE(O< REF(C,1) AND C>O,L,H,0,0),COLOR0000FF;
STICKLINE(O< REF(C,1) AND C>O,C,O,8,1),COLOR0000FF;
STICKLINE(C<O ,L,H,0,0),COLORFFFF00;
STICKLINE(C< O ,C,O,8,0),COLORFFFF00;
STICKLINE(O>REF(C,1) AND C<O ,L,H,0,0),COLORFFFF00;
STICKLINE(O>REF(C,1) AND C<O ,C,O,8,0),COLORFFFF00;
STICKLINE(C= REF(C,1) AND O> REF(C,1) ,L,H,0,0),COLORFFFF00;
STICKLINE(C= REF(C,1) AND O> REF(C,1) ,C,O,8,1),COLORFFFF00;
STICKLINE(O> REF(C,1) AND C<O ,L,H,0,0),COLORFFFF00;
STICKLINE(O> REF(C,1) AND C<O ,C,O,8,0),COLORFFFF00;
STICKLINE(O<REF(C,1) AND C<=O ,L,H,0,0),COLORFFFF00;
STICKLINE(O<REF(C,1) AND C<=O ,C,O,8,0),COLORFFFF00;
最新:C,linethick0;
五普:MA(CLOSE,5),PRECIS2,COLOR1E90FF{,linethick0};
十普:MA(CLOSE,10),PRECIS2,COLORYELLOW;
三四普:MA(CLOSE,34),PRECIS2,COLORGREEN;
一三五普:MA(C,135),PRECIS2,COLOR999999;};