635.问:
INDEXC,LINETHICK;
涨幅
INDEXC-"引用.大盘前收##day")/"引用.大盘前收##day",COLORWHITE;
涨跌:INDEXC-"引用.大盘前收##day",LINETHICK,COLORWHITE;
成交额(亿):sum(INDEXA/100000000,OPENMINUTES(time)),PRECISION2, LINETHICK0;
rc:=0;
s2:=sma(涨幅,2,1);
s6:=sma(涨幅,6,1);
dk:=2*(s2-s6);
STICKLINE(dk>0,rc,rc+dk,0,1),COLORRED;
STICKLINE(dk<0,rc,rc+dk,0,1),COLORCYAN;
VERTLINE(MINUTE=30 or MINUTE=0),COLORRED,POINTDOT;
VERTLINE(HOUR=15),COLORRED
这个指标有个问题就是对停牌的股票显示不好 因为大盘前收引用的是大盘的
收盘价它和各股同时显示希望帮助我解决了,说明一下这个是副图指标
答(懒汉):
分时 叠加大盘
pc:="1A0001$CLOSE";RC:=DYNAINFO( 3);
OO:=O;
CH:=HHV(MAX(h,RC),0);
CL:=LLV(MIN(L,RC),0);
PH:=HHV(PC,0);
PL:=LLV(PC,0);
B:=(CH-CL)/(PH-PL)*0.8;
Y:=(CH+CL-B*(PH+PL))/2;
P:=PC*B[DATACOUNT]+Y[DATACOUNT];
PP
-(P[1]-OO[1]);
1分钟叠加大盘
w0:=BARSLAST(DAY<>REF(DAY,1));
VERTLINE(w0=0)COLORBROWN,POINTDOT;
w:=BARSLAST(CROSS(BACKSET(ISLASTBAR,w0+1),0.5))*0;
pc:="1A0001$CLOSE"+w;RC
YNAINFO(3)+w;DRAWTEXT(ISLASTBAR,rc,'昨\n收');
OO:=OPEN+w;
CH:=HHV(MAX(HIGH+w,rc),w0);
CL:=LLV(MIN(LOW+w,rc),w0);
PH:=HHV(PC,w0);
PL:=LLV(PC,w0);
B:=(CH-CL)/(PH-PL)*0.8;
Y:=(CH+CL-B*(PH+PL))/2;
da:=DATACOUNT;
P:=PC*B[DA]+Y[DA];
PP
-(P[da-w0[da]]-OO[da-w0[da]]);
m:=SMA(CLOSE+w,6,1);
e:=SMA(CLOSE+w,12,1);
k:=2*(m-e);
STICKLINE(k>0,rc,rc+k,0.1,0)colorred;
STICKLINE(k<0,rc,rc+k,0.1,0)COLORCYAN;