SJ:=210424;
N1:=10;
A:="MIN$15$CLOSE";
VV:="MIN$15$V";
N:=BARSLAST(VV<>REF(VV,1))+1;
AA:=IF(N=1,A,0);
MAN1:(SUM(AA,SUMBARS(N=1,N1-1))+C)/N1;
MA10:MA(C,10);
DRAWCOLORKLINE(C>=O,COLORYELLOW,1);
DRAWCOLORKLINE(C<O,COLORYELLOW,1);
DRAWCOLORKLINE(C>MAN1&&C>MA10,COLORRED,1);
DRAWCOLORKLINE(C<MAN1&&C<MA10,COLORGREEN,1);
DRAWTEXT(CROSS(C>MAN1&&C>MA10,0.3),L,'买多'),COLORRED,VALIGN0;
DRAWTEXT(CROSS(C<MAN1&&C<MA10,0.3),H,'买空'),COLORGREEN;
SJ:=210424;
N1:=10;
A:="CLOSE#MIN15";
VV:="VOL#MIN15";
N:=BARSLAST(VV<>REF(VV,1))+1;
AA:=IF(N=1,A,0);
MAN1:(SUM(AA,SUMBARS(N=1,N1-1))+C)/N1;
MA10:MA(C,10);
//这个绘制K线的部分无法实现。金字塔里没有能实现这个效果的函数。KLINE函数实现的效果不行。
//DRAWCOLORKLINE(C>=O,COLORYELLOW,1);
//DRAWCOLORKLINE(C<O,COLORYELLOW,1);
//DRAWCOLORKLINE(C>MAN1 AND C>MA10,COLORRED,1);
//DRAWCOLORKLINE(C<MAN1 AND C<MA10,COLORGREEN,1);
DRAWTEXT(CROSS(C>MAN1&&C>MA10,0.3),L,'买多'),COLORRED,VALIGN0;
DRAWTEXT(CROSS(C<MAN1&&C<MA10,0.3),H,'买空'),COLORGREEN;