通达信买进和最低价的主图指标公式
M1:=5;
M2:=10;
M3:=20;
M4:=60;
M5:=120;
M6:=250;
M7:=30;
M8:=1;
M9:=2;
M10:=3;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
MA5:MA(CLOSE,M5);
MA6:MA(CLOSE,M6);
MA7:MA(CLOSE,M7);
MA8:MA(CLOSE,M8);
MA9:MA(CLOSE,M9);
MA10:MA(CLOSE,M10);
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
N:=BARSSINCEN(L=LLV(L,20),30);
A1:=IF(CURRBARSCOUNT<20 AND C<10,CONST(LLV(L,20)),DRAWNULL);
{STICKLINE(1,A1,A1-0.2,4,0),COLORBLUE;}
A2:=IF(CURRBARSCOUNT<20 AND C<10,CONST(HHV(C,20)),DRAWNULL);
{DRAWBAND(MA(L,20)*0.98,90,A2,90);}
{STICKLINE(1,A1,MA(L,20),0,-1),COLORBROWN;}
DRAWKLINE(H,O,L,C);
A3:A1+0.1,COLORBROWN,LINETHICK2;
DRAWICON(MA(L,20)/A3<1.02 AND L/A3<1.02,A3,26);
{周36:=MA(CLOSE,36)LINETHICK1,COLORWHITE
天60:=MA(CLOSE,60)LINETHICK1,COLORBLUE;
七天线:MA(C,7),COLORGRAY;
生命线:(MA(C,25)),LINETHICK2,COLORMAGENTA;
{不惑线:(MA(C,40)),COLORCYAN;
姊妹线:(EMA(C,56)),COLORWHITE;
{K线}
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
{线上阴线买停板
工作线:=(EMA(C,14)),POINTDOT,LINETHICK4,COLORYELLOW;
A3A:=EMA((((SLOPE(C,21)) * 20) + C),68);
A4A:=EMA(C,10);
A23:=((C + L) + H) / 3;
A24:=EMA(A23,6);
A25:=EMA(A24,5);
A26:=CROSS(A24,A25);
DRAWICON(A26,(LOW / 1.015),1),LINETHICK2,COLORMAGENTA;
DRAWTEXT(CROSS(A4A,A3A),L*0.9,'线上阴线买停板'),LINETHICK4,COLORYELLOW;
STICKLINE(((C < 工作线) AND (C >= O)),H,L,0,1),COLORBLUE;
STICKLINE(((C < 工作线) AND (C >= O)),O,C,2,1),COLORBLUE;
STICKLINE(((C < 工作线) AND (C <= O)),H,L,0,0),COLORBLUE;
STICKLINE(((C < 工作线) AND (C <= O)),O,C,2,0),COLORBLUE;}
{高低以及日期显示}
A1P:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1P:=FILTER(A1P,3); C1P:=BACKSET(B1P,3+1); D1P:=FILTER(C1P,3);{高点}
A2P:=REF(LOW,3)=LLV(LOW,2*3+1); B2P:=FILTER(A2P,3); C2P:=BACKSET(B2P,3+1); D2:=FILTER(C2P,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上可作取舍}
H1:=(D1P AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1P:=(D2 AND NOT(D1P AND E1
本文来源于网友自行发布,不代表本站立场,转载联系作者并注明出处