Box top: = ma (ref (HHV (c, 30), 1), 2), color 0000ff, line thickness 2;
Bottom of the box: = ma (ref (LLV (c, 30), 1), 2), color 00ff00, line thickness 2;
Moving average system
MA 10:MA(C, 10), colored white;
MA60:=MA(C,60),COLORYELLOW
Drawtext (cross (ma 10, ma60), (low * 0.95),' attention'), COLORYELLOW.
Duo: =EMA(C,3),COLORYELLOW
Empty: =EMA(C,5),COLOR00FF00
Equilibrium: =EMA (empty, 5), COLORWHITE
varf 1:= COUNT(CROSS(multiple,balanced),2)= 1;
VARF2:=COUNT(CROSS (empty, balanced), 2) =1;
ZAI:=FILTER(VARF 1 and VARF22,2);
DRAWTEXT(ZAI, equilibrium, "main rise"), COLORFF00FF.
{Middle rail: (Ma (h, 13), 13), colored, line thickness 2; }
{Trend 123: (Ma (h, 13), 1), green color, line thickness 2; }
Subject: =IF(ZAI, 1, 0), COLORWHITE
{Trend}
MA 15:=EMA (closing, 21);
Adhesion line ((ma15 >; REF(MA 15, 1)),MA 15,MA 15,9,6),COLOR00FFFF
Adhesion line ((ma15 <; REF(MA 15, 1))、MA 15、MA 15,9,6)、COLORFF0000
{K line}
FO:= on;
FH:= high;
FL:= low;
FC:= off;
KK:= IF(FC & gt; =FO and (FC & gt=REF(FC, 1) or REF(FC, 1)>=REF(FO, 1)), 1, if (fc <; FO and (FC & ltREF(FO, 1) or REF(FC,1) < REF(FO, 1),- 1,0));
Adhesion line (FC & gtFO, FH, FL, 0.4,0), COLORFF0000.
Adhesion lines (KK= 1 and FC & gt=FO, FO, FC, 8,0), COLORFF0000.
STICKLINE(KK= 1 and FC & ltFO, FO, FC, 8,0), COLORFF0000.
Adhesion line (KK=0 and FC & gt=FO, FO, FC, 8,0), COLORFF0000.
Adhesion line (KK=0 and FC & ltFO, FO, FC, 8,0), COLORFF0000.
{The trend is downward, and the K line is gray}
Adhesion line ((ma15 <; REF(MA 15, 1)),H,L,0.4,0),COLORGRAY
Adhesion line ((ma15 <; REF(MA 15, 1)),C,O,8,0),COLORGRAY
{Attention for K-line powder coating}
Adhesion line (ma15 <: REF(MA 15, 1) and (FC & gtFO), FH, FL, 0.4,0), COLORFF80FF.
Adhesion lines (KK= 1 and FC & gt=FO and ma15 <; REF(MA 15, 1),FO,FC,8,0),COLORFF80FF
STICKLINE(KK= 1 and FC & ltFO and ma15 <; REF(MA 15, 1),FH,FL,0.4,0),COLORFF80FF
STICKLINE(KK= 1 and FC & ltFO and ma15 <; REF(MA 15, 1),FO,FC,8,0),COLORFF80FF
Adhesion line (KK=0 and FC & gt=FO and ma15 <; REF(MA 15, 1),FH,FL,0.4,0),COLORFF80FF
Adhesion line (KK=0 and FC & gt=FO and ma15 <; REF(MA 15, 1),FO,FC,8,0),COLORFF80FF
Adhesion line (KK=0 and FC & ltFO and ma15 <; REF(MA 15, 1),FH,FL,0.4,0),COLORFF80FF
Adhesion line (KK=0 and FC & ltFO and ma15 <; REF(MA 15, 1),FO,FC,8,0),COLORFF80FF
Main positions: = EMA (100 * (closing -LLV (low, 34))/(HHV (high, 34)-LLV (low, 34)), 3);
{It has been tested, see if there is anything left, please adopt it if you are satisfied}