{上升黄柱主图}
MA5:MA(C,5);
MA20:MA(C,20);
MA60:MA(C,60);
TOP1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
TOP2:=REF(TOP1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP3:=REF(TOP2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP4:=REF(TOP3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP5:=REF(TOP4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP6:=REF(TOP5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP7:=REF(TOP6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP8:=REF(TOP7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP9:=REF(TOP8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPA:=REF(TOP9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOPB:=REF(TOPA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPC:=REF(TOPB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOPD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
TOPE:=REF(TOPD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPF:=REF(TOPE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP10:=REF(TOPF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP11:=REF(TOP10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP12:=REF(TOP11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP13:=REF(TOP12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP14:=REF(TOP13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP15:=REF(TOP14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP16:=REF(TOP15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP17:=REF(TOP16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP18:=REF(TOP17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP19:=REF(TOPD OR TOPE OR TOPF OR TOP10 OR TOP11 OR TOP12 OR TOP13 OR TOP14 OR TOP15 OR TOP16 OR TOP17 OR TOP18,1) AND TOP1;
TOP1A:=REF(TOP1 OR TOP2 OR TOP3 OR TOP4 OR TOP5 OR TOP6 OR TOP7 OR TOP8 OR TOP9 OR TOPA OR TOPB OR TOPC,1) AND TOPD;
STICKLINE(TOP19,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00FFFF;{黄色}
STICKLINE(TOP1A,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORGREEN;{粉红色}
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
操作线:=MA(C,5);
操盘线:=MA(C,10);
生命线:=MA(CLOSE,30);
趋势线:=MA(C,120);
XG1:=H>操作线 AND H>操盘线 AND H>生命线 AND H>趋势线;
DRAWTEXT(FILTER(BB13>1 AND XG1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),
EMA8,' →上升柱'),COLORMAGENTA;
STICKLINE(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),OPEN,CLOSE,3,0),COLORYELLOW;
DRAWICON(FILTER(BB13>1 AND XG1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),L,9);
AAA:=(3*C+H+L+O)/6;
TOP41:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
TJ1:=VOL=HHV(VOL,10) AND XG1 AND VOL>2*REF(VOL,1) AND CLOSE>TOP41;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1 AND XG1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
{上升黄柱副图}
MA5:=MA(C,5);
MA20:=MA(C,20);
MA60:=MA(C,60);
TOP1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
TOP2:=REF(TOP1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP3:=REF(TOP2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP4:=REF(TOP3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP5:=REF(TOP4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP6:=REF(TOP5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP7:=REF(TOP6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP8:=REF(TOP7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP9:=REF(TOP8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPA:=REF(TOP9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOPB:=REF(TOPA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPC:=REF(TOPB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOPD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
TOPE:=REF(TOPD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPF:=REF(TOPE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP10:=REF(TOPF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP11:=REF(TOP10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP12:=REF(TOP11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP13:=REF(TOP12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP14:=REF(TOP13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP15:=REF(TOP14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP16:=REF(TOP15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP17:=REF(TOP16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP18:=REF(TOP17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP19:=REF(TOPD OR TOPE OR TOPF OR TOP10 OR TOP11 OR TOP12 OR TOP13 OR TOP14 OR TOP15 OR TOP16 OR TOP17 OR TOP18,1) AND TOP1;
TOP1A:=REF(TOP1 OR TOP2 OR TOP3 OR TOP4 OR TOP5 OR TOP6 OR TOP7 OR TOP8 OR TOP9 OR TOPA OR TOPB OR TOPC,1) AND TOPD;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
操作线:=MA(C,5);
操盘线:=MA(C,10);
生命线:=MA(CLOSE,30);
趋势线:=MA(C,120);
XG1:=H>操作线 AND H>操盘线 AND H>生命线 AND H>趋势线;
CC:=FILTER(BB13>1 AND XG1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);
STICKLINE(CC, 0,10, 0.2, 0),COLORLIMAGENTA;
STICKLINE(CC, 0,5, 0.8, 0),COLORYELLOW;
DRAWTEXT(CC,7.4,'上升柱'),COLORYELLOW;
{上升黄柱选股}
MA5:=MA(C,5);
MA20:=MA(C,20);
MA60:=MA(C,60);
TOP1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
TOP2:=REF(TOP1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP3:=REF(TOP2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP4:=REF(TOP3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP5:=REF(TOP4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP6:=REF(TOP5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP7:=REF(TOP6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP8:=REF(TOP7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP9:=REF(TOP8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPA:=REF(TOP9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOPB:=REF(TOPA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPC:=REF(TOPB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOPD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
TOPE:=REF(TOPD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOPF:=REF(TOPE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP10:=REF(TOPF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP11:=REF(TOP10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP12:=REF(TOP11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP13:=REF(TOP12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP14:=REF(TOP13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP15:=REF(TOP14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP16:=REF(TOP15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP17:=REF(TOP16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
TOP18:=REF(TOP17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
TOP19:=REF(TOPD OR TOPE OR TOPF OR TOP10 OR TOP11 OR TOP12 OR TOP13 OR
TOP14 OR TOP15 OR TOP16 OR TOP17 OR TOP18,1) AND TOP1;
TOP1A:=REF(TOP1 OR TOP2 OR TOP3 OR TOP4 OR TOP5 OR TOP6 OR TOP7 OR
TOP8 OR TOP9 OR TOPA OR TOPB OR TOPC,1) AND TOPD;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
操作线:=MA(C,5);
操盘线:=MA(C,10);
生命线:=MA(CLOSE,30);
趋势线:=MA(C,120);
XG1:=H>操作线 AND H>操盘线 AND H>生命线 AND H>趋势线;
CC:FILTER(BB13>1 AND XG1 AND EMA(X1,13)>REF(EMA(X1,8),1),10);