通达信半仓操作主图指标
多:=(((((((((((VAR1 OR VAR2) OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC);
STICKLINE(多,L,H,0,0),COLOR0000FF;
STICKLINE(多 AND C>=O,C,O{REF(C,1)},3,1),COLOR0000FF;
STICKLINE(多 AND C<O,C,O{REF(C,1)},3,0),COLOR0000FF;
VARD:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2)));
VARE:=((REF(VARD,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VARF:=((REF(VARE,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR10:=((REF(VARF,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR11:=((REF(VAR10,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR12:=((REF(VAR11,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR13:=((REF(VAR12,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR14:=((REF(VAR13,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR15:=((REF(VAR14,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR16:=((REF(VAR15,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
VAR17:=((REF(VAR16,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));
VAR18:=((REF(VAR17,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));
空:=(((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18);
STICKLINE(空,H,L,0 ,0 ),COLOR00FF00;
STICKLINE(空 AND C>=O,C,O{REF(C,1)},3,1),COLOR00FF00;
STICKLINE(空 AND C<O,C,O{REF(C,1)},3,0),COLOR00FF00;
VAR19:=(REF((((((((((((VARD OR VARE) OR VARF) OR VAR10) OR VAR11) OR VAR12) OR VAR13) OR VAR14) OR VAR15) OR VAR16) OR VAR17) OR VAR18),1) AND VAR1);
VAR1A:=(REF((((((((((((VAR1 OR VAR2) OR VAR3) OR VAR4) OR VAR5) OR VAR6) OR VAR7) OR VAR8) OR VAR9) OR VARA) OR VARB) OR VARC),1) AND VARD);
STICKLINE(VAR19,REF(CLOSE,1),REF(CLOSE,2),3,0 ),COLORDDDDDD;
STICKLINE(VAR1A,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORFF8800;
DRAWICON(VAR19,L*0.995,1);
DRAWICON(VAR1A,H*1.005,2);
STICKLINE(CURRBARSCOUNT=1,预测,预测,100,-1),COLOR00FFFF;
STICKLINE(CURRBARSCOUNT=1,HUGO,HUGO,100,-1),COLORFF00FF;
DRAWTEXT(ISLASTBAR,预测," 【预测关键位】"),COLORFFFFFF,LINETHICK1;
DRAWTEXT((A101=1 AND REF(A101,1)=0),O,"短主升"),COLOR00FFFF;
DRAWTEXT((A1=1 AND REF(A1,1)=0),O*0.985,"中长升"),COLOR00FFFF;
IF(CURRBARSCOUNT=T1+1,量30,DRAWNULL),CIRCLEDOT,COLORDD00FF,LINETHICK3;
DRAWTEXT(ISLASTBAR,量30," 30量能平台");
{DRAWTEXT(ISLASTBAR,D顶," D顶"),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,D底," D底"),COLORLIBLUE;}
DRAWTEXT(ISLASTBAR,中线," 中线"),COLORDD99DD;
DRAWTEXT(ISLASTBAR,阻一," 阻一"),COLOR00BB00;
DRAWTEXT(ISLASTBAR,阻二," 阻二"),COLOR00BB00;
DRAWTEXT(ISLASTBAR,撑一," 撑一"),COLOR00BB00;
DRAWTEXT(ISLASTBAR,撑二," 撑二"),COLOR33BB33;
{DRAWTEXT_FIX(1,0.12,0.95,0,"【短线】 红白柱买入,蓝绿柱卖出。" ),COLORFFDD00;};
T6:=IF(FINDSTR(EXTERNSTR(0,1),","),STRCAT("千股千评:",EXTERNSTR(0,1)),"");
NNN:=IF(TOTALBARSCOUNT>=120,120,TOTALBARSCOUNT);
{本输出适用于锁定K线数为120,N可改为你习惯的K线数,见下图}
HH0:=HHV(H,NNN);{www.gpxiazai.com}
LL0:=LLV(L,NNN);
MM0:=CONST((HH0+LL0)*0.5);
S01:=CONST(IF(REF(C,NNN-15)>MM0,1.00,-0.08));
S02:=CONST(IF(REF(C,NNN-15)>MM0,-1,1));
S6:=IF(FINDSTR(EXTERNSTR(0,1),","),S01+(0.08*S02),S01);
DRAWTEXT_FIX(1,0,S6,0,T6)COLOR0000FF;
- 上一篇公式:通达信趋势判断指标
- 下一篇公式:通达信指标波段鬼王指标副图