Current location - Trademark Inquiry Complete Network - Futures platform - Who can tell me how to draw pressure level and support level on the K-line diagram, learn to draw lines and what books to read?
Who can tell me how to draw pressure level and support level on the K-line diagram, learn to draw lines and what books to read?
Looking at the book Tangent Theory, a K-line has four prices: opening price, closing price, highest price and lowest price. You can connect with a low point or a closed point. After that, you can narrow the K-line and find two low-point connections. This is the support line and the two high points are the pressure line. In short, the more lows or highs you encounter on this line, the more effective the pressure or support will be.

Give you an automatic drawing index of correspondence.

HIGHN:= 10; LOWN:= 10; high display:= 0; low display:= 0; ZG display:= 0; ma display:= 0;

AA:=REF(H,HIGHN)=HHV(H,2 * HIGHN+ 1);

QY:=BACKSET(AA,HIGHN+ 1);

CC:=FILTER(QY,HIGHN),H=HHV(H,HIGHN+ 1);

DRAWICON(CC,H* 1.02,2);

DDD:= bars last(CC);

GDTS:=IF(CC,CURRBARSCOUNT,0);

Step d: =IF(DDD, REF(H, DDD), h); {top}

Dimbus: =IF(DDD, REF(GDTS, DDD), gdts);

Dingbu 1:=REF (Dingbu, DDD+1);

gdcs 1:= CONST(ding buts);

Dimbutz 1:=REF (Dimbutz, DDD+1);

gdcs 2:= CONST(ding buts 1);

Dingbu 2:=REF (Dingbu 1, DDD+1);

MM:= IF(CURRBARSCOUNT & gt; GDCS2,0, 1);

High pressure: draw lines (currbarscount = gdcs2, h, currbarscount = gdcs 1, h, 1) with green color and line thickness of 2;

DRAWLINE(CURRBARSCOUNT=GDCS2,H,ISLASTBAR,REF(H,GDCS2- 1), 1),COLOR0055FF,POINTDOT

DRAWLINE(CURRBARSCOUNT = gdcs 1,H,ISLASTBAR,REF(H,GDCS 1- 1), 1),COLORYELLOW,POINTDOT

AA 1:=REF(L,LOWN)=LLV(L,2 * LOWN+ 1);

QY 1:=BACKSET(AA 1,LOWN+ 1);

Cc 1:= filter (QY 1, LOWN), L=LLV(L, LOWN+1);

DRAWICON(CC 1,L*0.98, 1);

DD 1:= bars last(cc 1);

DDTS:=IF(CC 1,CURRBARSCOUNT,0);

YDB:=IF(DD 1,REF(L,DD 1),L);

DDTS 1:=IF(DD 1,REF(DDTS,DD 1),DDTS);

ddcs 1:= CONST(ddts 1);

ZDB:=REF(YDB,DD 1+ 1);

DDTS2:=REF(DDTS 1,DD 1+ 1);

ddcs 2:= CONST(ddts 2);

Low support: draw lines (currbarscount = ddcs2, l, currbarscount = ddcs 1, l, 1) with a line thickness of 2;

ZGSTAR:= (high voltage+low support)/2;

ZGEND:=CONST ((high voltage+low support)/2);

STARDAY:= IF(ddcs 2 & lt; GDCS2、DDCS2、gdcs 2);

Middle track: drawline (currbarscout = star, ZG star, Islamic bar, ZG end, 1), color ff 55bb, line thickness 2;

DRAWLINE(CURRBARSCOUNT = ddcs 1,L,ISLASTBAR,REF(L,DDCS 1- 1), 1),COLORMAGENTA,POINTDOT,;

DRAWLINE(CURRBARSCOUNT=DDCS2,L,ISLASTBAR,REF(L,DDCS2- 1), 1),COLORCYAN,POINTDOT

Center of gravity: = (c+0.6 18 * ref (c, 1)+0.382 * ref (c, 2)+0.236 * ref (c, 3)+0. 146 * ref (c,

High: =HHV (60 BC) -LLV (60 BC);

RSI:=SMA(MAX (barycenter -REF (barycenter, 1), 0), 5, 1)/SMA(ABS (barycenter -REF (barycenter, 1)), 5,1);

Criteria: center of gravity+height * (RSI-0.5), magenta color, line thickness1;

STICKLINE (reticle (RSI, 0. 1), guide line, REF (guide line, 1), 1, 0), with yellow color;

STICKLINE (cross (0.9, RSI), guide line, REF (guide line, 1), 1, 0), COLORCYAN.