JD<0,10,0);
BDDD:=LLV(JD,2)=LLV(JD,8);
买入:=IF(CROSS(JD,REF(JD+0.01,1)) AND BDDD AND JD<20,30,0);
百比:=(CLOSE/OPEN)<1.0124;
DRAWTEXT(买入 AND 注意买=100 AND 限制 AND 超跌=0 AND 百比,LOW,'短炒'),ALIGN1,Color2F2F5F;
压力位:=IF(CROSS(D24,D),HIGH,L);
支撑位:=IF((CLOSE >= MA(CLOSE,20)),80,50);
U2L:=IF((CLOSE >= MA(CLOSE,20)),50,20);
中期支撑:=LLV(HIGH,30);
RL5:=(SMA(HIGH,5,2) * 1.05);
上:=(SMA(LOW,5,2) * 0.96);
下:=SMA(LOW,2,1);
中:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);
X1:=EMA(中,10);
X2:=REF(X1,1);
X3:=((REF(HIGH,1) + REF(LOW,1)) / 2);
X4:=(MA(CLOSE,21) + (2 * STD(CLOSE,21)));
X5:=REF(CLOSE,1);
X6:=((SMA(MAX((CLOSE - X5),0),7,1) / SMA(ABS((CLOSE - X5)),7,1)) * 100);
X7:=CROSS(79,X6);
X9:=MA(CLOSE,115);
X10:=CROSS(X6,79);
X11:=FILTER(X10,4) AND 限制;
MA2:=MA(VOL,10);
DRAWTEXT(X11 and VOL>MA2,(HIGH * 1.04),'调'),ALIGN1,COLORFF9C00;
CSy:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD:=(EMA(CSy,3)-50)*2;
见风2:=REF(YJD>70,1);
过滤:=FILTER(见风2,2);
趋势线:=3*SMA((CLOSE- LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
趋势参考:=EMA(趋势线,3);
高顶:VERTLINE(趋势线>85 AND 限制 AND 趋势线<105 AND (趋势线/趋势参考)>1.03,3),COLOR003300;
趋势参考2:=趋势线>20 and REF(趋势线<80,1);
DRAWTEXT(过滤 and 趋势参考2 and VOL>MA2 AND 限制,(HIGH * 1.06),'减'),ALIGN1,COLOR00FF00;
老婆:=(真见招-中线)>0.038;
老公:=(真见招-REF(真见招,1))< 0.0125 AND 中线<REF(中线,1) AND 中线>真见招;
反正切:=(C+L+H)/3;
二奶:=MA(反正切,9)-REF(MA(反正切,3),1)>0.1;
二奶2:=MA(反正切,9)-REF(MA(反正切,3),1)>0.125;
深底:VERTLINE(趋势线<=6.1 AND 二奶2 AND VOL>MA2*0.668 AND 限制 AND (趋势参考/趋势线)>1.035,4),Color2F0F3F;
逃遁:=(SMA(HIGH,21,2) * 1.05);
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,7,0),COLORFF1100;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,6,0),COLORFF3300;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,5,0),COLORFF5500;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,4,0),COLORFF7700;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,3,0),COLORFF9900;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,2,0),COLORFFBB00;
STICKLINE((OPEN >= CLOSE),CLOSE,OPEN,1,0),COLORFFDD00;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,7,0) ,COLOR000055;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,6,0) ,COLOR000066;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,5,0) ,COLOR000077;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;
STICKLINE(CLOSE>=OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,7,0),COLORFF11FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,6,0),COLORFF33FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,5,0),COLORFF55FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,4,0),COLORFF77FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,3,0),COLORFF99FF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,2,0),COLORFFBBFF;
STICKLINE(((((CLOSE / OPEN) > 1.04) AND (CLOSE < 逃遁)) AND 趋势线<25 AND ((CLOSE - REF(CLOSE,1)) > 0)),CLOSE,OPEN,1,0),COLORFFDDFF;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,7,0),COLOR003300;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,6,0),COLOR005500;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,5,0),COLOR007700;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,4,0),COLOR009900;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,3,0),COLOR00BB00;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,2,0),COLOR00DD00;
STICKLINE(((((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,1))) AND 趋势线>75 AND (HIGH > 逃遁)) AND (CLOSE < 逃遁)),CLOSE,OPEN,1,0),COLOR00FF00;
阻挡:=(SMA(LOW,21,2) * 0.94);
DRAWTEXT((((((CROSS(VAR2C,短线) AND 限制 AND ((CLOSE - REF(HIGH,1)) > 0)) AND ((中线 - REF(中线,1)) > 0)) AND (HIGH <= 压力一)) AND (CLOSE < MA20)) AND (LOW <= 中线)),(LOW - 0.06),'关注'),ALIGN1,COLORFAABEC;
DRAWTEXT(FILTER(((((((LOW <= 天) AND 限制 AND (CLOSE >= MA20)) AND (HIGH < 压力一)) AND ((天 - REF(天,1)) > 0)) AND (CLOSE < 压力一)) AND ((MA20 - REF(MA20,1)) > 0)),6) AND (LOW<=((强力压力+短期底)/2)),(LOW - 0.24),'全仓'),ALIGN1,Color4F2F4F;
DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底)) AND 限制 AND (CLOSE >= 中期支撑))AND (LOW<=((强力压力+强力支撑)/2)) AND((CLOSE/LOW)>1.026 )) ,L * 0.97,'短'),ALIGN1,COLOR0000FF;
DRAWTEXT(((((LOW <= 上) AND (HIGH >= 短期底)) AND 限制 AND (CLOSE >= 中期支撑))AND (LOW<=((强力压力+强力支撑)/2)) AND((CLOSE/LOW)>1.026 )) ,L * 0.92,'炒'),ALIGN1,COLOR0000FF;
DRAWTEXT((((CROSS(MA20,压力位) AND 限制 AND (LOW <= MA20)) AND ((MA20 - REF(MA20,1)) > 0.02)) AND 老婆 AND (MACD>-0.03)),(LOW - 0.07),'佳'),ALIGN1,COLOR999999;
DRAWTEXT((((CROSS(MA20,压力位) AND 限制 AND (LOW <= MA20)) AND ((MA20 - REF(MA20,1)) > 0.02)) AND 老公 AND (MACD>-0.03)),(LOW - 0.07),'佳'),ALIGN1,Color9A589F;
DRAWTEXT(((CROSS(MA25,压力位) AND 限制 AND (LOW <= MA25)) AND ((MA25 - REF(MA25,1)) > 0.02)) AND (LOW<=((强力压力+短期底)/2)),(LOW - 0.35),'绝佳'),ALIGN1,COLOR0000B7;
DRAWTEXT((LOW <= 强力支撑) AND 限制 AND (CLOSE > LOW) AND((CLOSE/LOW)>1.0175) AND (LOW/BOLL下)<0.9375,L * 0.935,'底'),ALIGN1,COLOR0000B7;
B1u:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE < REF(CLOSE,1),0-VOL,0)),0);
B2u:=40;
B3u:=IF(CLOSE>LLV(CLOSE,B2u),1,-1)*IF(B1u>LLV(B1u,B2u),1,-1);
B4u:=IF(B3u=-1,1,0);
B5u:=COUNT(B4u=1,8)>3;
B6u:=SUM(AMOUNT,13)/(AMOUNT/VOL/100)/100;
B7u:=DMA((HIGH+LOW+CLOSE)/3,VOL/B6u);
B8u:=(CLOSE-B7u)/B7u*100<-21;
B9u:=(CLOSE-MIN(REF(CLOSE,5)*0.830,REF(CLOSE,21)*0.720))/CLOSE<0.045;
DRAWTEXT(B8u AND B9u AND 趋势线>-1.5 and VOL>MA2*0.7 AND 限制 AND B5u,(LOW - 0.42),'财'),ALIGN1,Color9DFFFF;
见招线:=100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10));
曾见招:=IF(CROSS(见招线,3),1,0) AND 二奶2 AND 限制;
招线:VERTLINE(曾见招 ,1),COLOR555555;
XW1:=ref(barslast(HW1),1)+1;
FW1:=backset(HW1 AND count(LW1,XW1)>0,llvbars(if(LW1,l,10000),XW1));
GW1:=FW1>ref(FW1,1);
IW1:=backset(GW1,2);
LDW:=IW1>ref(IW1,1);{过滤后低点}
LW2:=LDW OR barstatus=2 OR barscount(c)=1;
XW2:=ref(barslast(LW2),1)+1;
FW2:=backset(LW2 AND count(HW2,XW2)>0,hhvbars(if(HW2,h,0),XW2));
GW2:=FW2>ref(FW2,1);
IW2:=backset(GW2,2);
HDW:=IW2>ref(IW2,1);{过滤后高点}
RW1:=backset(barstatus=2,barslast(HDW)+1);
SW1:=RW1>ref(RW1,1); {前一高}
TW1:=backset(barstatus=2,barslast(LDW)+1);
UW1:=TW1>ref(TW1,1); {前一低}
RW2:=backset(SW1,ref(barslast(HDW),1)+2);
SW2:=RW2>ref(RW2,1); {前二高}
TW2:=backset(UW1,ref(barslast(LDW),1)+2);
UW2:=TW2>ref(TW2,1); {前二低}
RW3:=backset(SW2,ref(barslast(HDW),1)+2);
SW3:=RW3>ref(RW3,1); {前三高}
TW3:=backset(UW2,ref(barslast(LDW),1)+2);
UW3:=TW3>ref(TW3,1); {前三低}
RW4:=backset(SW3,ref(barslast(HDW),1)+2);
SW4:=RW4>ref(RW4,1); {前四高}
TW4:=backset(UW3,ref(barslast(LDW),1)+2);
UW4:=TW4>ref(TW4,1); {前四低}
RW5:=backset(SW4,ref(barslast(HDW),1)+2);
SW5:=RW5>ref(RW5,1); {前五高}
TW5:=backset(UW4,ref(barslast(LDW),1)+2);
UW5:=TW5>ref(TW5,1); {前五低}
RW6:=backset(SW5,ref(barslast(HDW),1)+2);
SW6:=RW6>ref(RW6,1); {前六高}
TW6:=backset(UW5,ref(barslast(LDW),1)+2);
UW6:=TW6>ref(TW6,1); {前六低}
忽悠涨停板:drawline(UW4 and 限制,l,UW3 and 限制,l,0),COLORFF00FF;
TJ:=IF((C-REF(C,1))/REF(C,1)>0.025,1,0);
yl:=IF(C>REF(O,BARSLAST(TJ =1)),REF(O,BARSLAST(TJ =1)),0);
FT:=BARSLAST(yl);
YLX:=REF(yl,FT);
平台突破:=CROSS(C,YLX);
VAk2:=REF(LOW,1);
VAk3:=SMA(ABS(LOW-VAk2),13,1)/SMA(MAX(LOW-VAk2,0),13,1)*100;
VAk4:=EMA(IF(CLOSE*1.2,VAk3*13,VAk3/13),13);
VAk5:=LLV(LOW,34);
VAk6:=HHV(VAk4,34);
VAk7:=IF(LLV(LOW,56),1,0);
VAk8:=EMA(IF(LOW<=VAk5,(VAk4+VAk6*2)/2,0),3)/618*VAk7;
主力进场:=VAk8>REF(VAk8,1);
进场:=ref(主力进场,1);
DRAWTEXT(进场 AND 限制 and 平台突破 ,L * 0.97,'进'),ALIGN1,COLOR8000FF;
VAME:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VAMF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAM10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAM11:=VAMF<REF(VAM10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAM11 AND 趋势线<35 AND 限制 AND COUNT(VAM11,30)=1,LOW*0.95,'动'),ALIGN1,COLORFF00FF;
VAM12:=(HIGH+LOW+CLOSE)/3;
VAM13:=(VAM12-MA(VAM12,14))/(0.015*AVEDEV(VAM12,14));
VAM14:=(VAM12-MA(VAM12,70))/(0.015*AVEDEV(VAM12,70));
VAM15:=IF(VAM13>=150 AND VAM13<200 AND VAM14>=150 AND VAM14<200,10,0);
VAM16:=IF(VAM13<=-150 AND VAM13>-200 AND VAM14<=-150 AND VAM14>-200,-10,VAM15);
VAM17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAM18:=100-ABS(VAM17);
VAM19:=IF(VAM18<90,VAM18,100);
VAM1A:=IF(VAME>0,VAME,0);
VAM1B:=IF(VAM14>=200 AND VAM13>=150,15,IF(VAM14<=-200 AND VAM13<=-150,-15,VAM16))+60;
VAM1C:=VAM1A>48 AND VAM1B>60 AND VAM19<100;
DRAWTEXT(VAM1C AND 限制 AND COUNT(VAM1C,30)=1,HIGH*1.03,'战'),ALIGN1,COLORFF00FF;
DRAWTEXTREL(2,60.5,'底部区域:'+NUMTOSTR(COST(0.33))),Color0000FF;
DRAWTEXTREL(128,60.5,'安全区域:'+NUMTOSTR(COST(5))),Colorff00FF;
DRAWTEXTREL(2,30.5,'投机区域:'+NUMTOSTR(COST(15))),Color00DDFF;
DRAWTEXTREL(128,30.5,'风险区域:'+NUMTOSTR(COST(55))),COLOR00FF00;
a:="LTFunc5@FORLT2";
s1:="LTFunc5@LT_S1";
p1:="LTFunc5@LT_P1";
drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;
drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;