跟随趋势,彩色带判断位置,介入留意红柱或¥符号出现,退出留意青柱
INPUT:GU1(6,1,100),GU2(27,1,200),GU3(5,1,100);
LX_JW1:=100*(CLOSE-REF(CLOSE,GU1))/REF(CLOSE,GU1);
LX_JW2:=MA(LX_JW1,(2*GU1))*2.5;
LX_JW3:=(CLOSE-LLV(LOW,GU2))/(HHV(HIGH,GU2)-LLV(LOW,GU2))*100;
LX_JW4:=3*SMA(LX_JW3,5,1)-2*SMA(SMA(LX_JW3,5,1),3,1);
LX_JW5:=EMA(LX_JW4,GU3);
LX_JW6:=REF(LX_JW5,1);
FILLRGN(50,50+LX_JW2,LX_JW2 <0),COLORGREEN;
FILLRGN(50,50+LX_JW2,LX_JW2>=0),COLORDD22DD;
界线:STICKLINE(C>0,49,51,10,0),COLOR999999;
STICKLINE(LX_JW5>=REF(LX_JW5,1),LX_JW5,LX_JW6,8,0),COLOR0000DD;
STICKLINE(LX_JW5<=REF(LX_JW5,1),LX_JW5,LX_JW6,8,0),COLORDDDD00;
文线:10,COLORF505F5;
估线:90,COLOR0088F5;
{-----------【数钱图解】-----------}
DRAWTEXT(FILTER(CROSS(LX_JW5,10),5),3,'¥'),ALIGN0,COLORRED;
DRAWTEXTREL(1,80,'界文自用'),COLOR00FF00;
STICKLINE(FILTER(CROSS(LX_JW5,10),5),10,50,8,0),COLOR6A00EE;
STICKLINE(FILTER(CROSS(90,LX_JW5),5),92,50,8,0),COLOREE6A00;
DRAWICON(FILTER(CROSS(90,LX_JW5),5),95,8);
DRAWICON(CROSS(LX_JW5,50),43,7);