n=10
REFLINE: -10, 0, 40, 60, 100, 110;
Var1:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
Var2:=2*ABS(Var1);
Var3:=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);
Var4:=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);
Var5:=(HIGH+LOW+CLOSE)/3;
Var6:=(Var5-MA(Var5,14))/(0.015*AVEDEV(Var5,14));
Var7:=(Var5-MA(Var5,70))/(0.015*AVEDEV(Var5,70));
Var8:=IF(Var6>=150 AND Var6<200 AND Var7>=150 AND Var7<200,10,0);
Var9:=IF(Var6<=-150 AND Var6>-200 AND Var7<=-150 AND Var7>-200,-10,Var8);
VarA:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VarB:=100-ABS(VarA);
VarC:=3*SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXC-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VarD:=3*SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1)-2*SMA(SMA((INDEXO-LLV(INDEXL,75))/(HHV(INDEXH,75)-LLV(INDEXL,75))*100,20,1),15,1);
VarE:=REF(LOW,1)*0.9;
VarF:=LOW*0.9;
Var10:=(VarF*VOL+VarE*(CAPITAL-VOL))/CAPITAL;
Var11:=EMA(Var10,30);
Var12:=Var11-CLOSE;
Var13:=REF(CLOSE,1);
Var14:=SMA(MAX(CLOSE-Var13,0),7,1)/SMA(ABS(CLOSE-Var13),7,1)*100;
Var15:=SMA(MAX(CLOSE-Var13,0),13,1)/SMA(ABS(CLOSE-Var13),13,1)*100;
Var16:=BARSCOUNT(CLOSE);
Var17:=SMA(MAX(CLOSE-REF(CLOSE,1),0),6,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
Var18:=((-100)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+50)*2;
Var19:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1A:=(SMA(Var19,4,1)-50)*2;
Var1B:=SMA(Var1A,3,1);
Var1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
Var1D:=SMA(Var1C,4,1);
Var1E:=SMA(Var1D,3,1);
Var1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
Var11:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;
Var22:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
Var33:=IF(ABS(Var1)<2,0.9,1);
Var44:=Var33*(Var22-Var11);
Var20:=IF(Var17<=25 AND Var18<-95 AND Var1F>20 AND Var1B<-30 AND Var1E<30 AND Var12>=-0.25 AND Var14<25 AND Var15<30 AND Var16>50,70,0);
天:IF(VarB<90,VarB,100),LINETHICK0,ColorE2E4E5;
STICKLINE(VarB<90,100,VarB,1,0),ColorFFFFFF;
STICKLINE(VarB<90,95,90,1,0),ColorB5B5B5;
STICKLINE(VarB<90,100,95,1,0),Color898989;
地:= IF(Var1>0,Var1,0);
STICKLINE(地>0,0,地,10,0),COLOR66FF00;
STICKLINE(地>0,0,地*0.9,10,0),COLOR66EE00;
STICKLINE(地>0,0,地*0.85,10,0),COLOR66DD00;
STICKLINE(地>0,0,地*0.8,10,0),COLOR66CC00;
STICKLINE(地>0,0,地*0.75,10,0),COLOR66BB00;
STICKLINE(地>0,0,地*0.7,10,0),COLOR66AA00;
STICKLINE(地>0,0,地*0.65,10,0),COLOR669900;
STICKLINE(地>0,0,地*0.6,10,0),COLOR668800;
STICKLINE(地>0,0,地*0.55,10,0),COLOR667700;
STICKLINE(地>0,0,地*0.5,10,0),COLOR666600;
STICKLINE(地>0,0,地*0.45,10,0),COLOR665500;
STICKLINE(地>0,0,地*0.4,10,0),COLOR664400;
STICKLINE(地>0,0,地*0.35,10,0),COLOR663300;
STICKLINE(地>0,0,地*0.3,10,0),COLOR662200;
STICKLINE(地>0,0,地*0.25,10,0),COLOR661100;
STICKLINE(地>0,0,地*0.2,10,0),COLOR660000;
STICKLINE(地>0,0,-地*0.3,10,0),Color417800;
基D:= IF(Var1<0,Var2,0);
STICKLINE(基D>=REF(基D,1),0,基D,7,0),color414141;
STICKLINE(基D<REF(基D,1),0,基D,7,0),ColorE2E4E5;
STICKLINE(基D,0,-(基D)*0.3,7,0),color232323;
STICKLINE(基D<REF(基D,1),-(基D)*0.3,0,7,0),Color808080;
★发射: Var20,LINETHICK0,colorred;
stickline(★发射>0,15,★发射*1.1,1,0),pointdot,colorwhite;
stickline(★发射>0,15,0,3,0),colorred,linethick6;
stickline(★发射>0 and ★发射<400,40,★发射,1,1),ColorFFA4A6,linethick3;
stickline(★发射>0 and ★发射<400,40,★发射,1,0),colorred,linethick1;
stickline(★发射>0,15,★发射*0.7,5,0),ColorFFA4A6,linethick5;
stickline(★发射>0,15,★发射*0.4,5,0),ColorFFA4A6,linethick7;
stickline(★发射>0,15,★发射*0.1,5,0),color0099cc,linethick7;
预警系统:IF(Var7>=200 AND Var6>=150,15,IF(Var7<=-200 AND Var6<=-150,-15,Var9))+60,LINETHICK0;
DRAWTEXT(预警系统=75,75,'↓'),align1,Color0000FF;
DRAWTEXT(预警系统=50,75,'↑'),align1,Color00FFFF;
STICKLINE(Var3>=REF(Var4,1),Var3,Var4,8,0),colorred;
STICKLINE(Var3<REF(Var4,1),Var3,Var4,8,0),coloryellow;
t1:=CLOSE>MA(CLOSE,20) AND MA(CLOSE,20)>=REF(MA(CLOSE,20),1);
t2:=CLOSE<MA(CLOSE,20) AND MA(CLOSE,20)<REF(MA(CLOSE,20),1);
t3:=地>50 AND 预警系统>60 AND 天 =100;
t4:=地>48 AND 预警系统>60 AND 天<100;
t5:=基D>38 AND 预警系统<55;
t6:=★发射>50 AND 天<90;
t7:=Var3<REF(Var4,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
t8:=Var3>=REF(Var4,1) AND CLOSE<REF(CLOSE,1) AND 预警系统=60 AND ★发射=0 AND 基D>REF(基D,1) AND VarC<REF(VarD,1);
DRAWTEXT(t1 and count(t1,30)=1,100,'或高抛低吸!★'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t2 and count(t2,30)=1,90,'小心无量阴跌!☆'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t3 and count(t3,30)=1,70,'过急,需要调整!∨'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t4 and count(t4,30)=1,80,'顶部,注意风险!∨'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t5 and count(t5,30)=1,50,'不必杀跌,应有小反弹!∧'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t6 and count(t6,30)=1,30,'坚决抢反弹!▲'),ALIGN2,COLOR00FFFF;
DRAWTEXT(t7 and count(t7,30)=1,40,'有资金进场迹象,关注!△'),ALIGN2,ALIGN2,COLOR00FFFF;
DRAWTEXT(t8 and count(t8,30)=1,20,'后市注意方向◇'),ALIGN2,COLOR00FFFF;
aa:=REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1);
aa1:=MA(VOL,8)/MA(VOL,45)>=2.5;
aa2:=MA(HIGH,13);
aa3:=MA(CLOSE,13);
aa4:=MA(AMOUNT/VOL,13)/100;
aa5:=MA(LOW,13);
aa6:=MA(AMOUNT/VOL,30)/100;
aa7:=MA(AMOUNT/VOL/100,13)*0.85;
aa8:=FILTER((aa2>REF(aa2,1)*1.015 AND aa5>REF(aa5,1)*1.015 AND aa3>REF(aa3,1)*1.015 AND aa4>REF(aa4,1)*1.015 ),5);
高位买:(c>0 and FINANCE(33)>0 and (aa or aa8))*20,LINETHICK0,ColorFF00FF;
stickline(高位买>0,11,高位买*1.1,1,0),pointdot,colorwhite;
stickline(高位买>0,5,0,3,0),colorred,linethick5;
stickline(高位买>0 and 高位买<400,10,高位买,1,1),ColorFFA4A6,linethick3;
stickline(高位买>0 and 高位买<400,5,高位买,1,0),colorred,linethick1;
stickline(高位买>0,5,高位买*0.7,2,0),ColorFFA4A6,linethick5;
stickline(高位买>0,5,高位买*0.4,3,0),ColorFFA4A6,linethick7;
stickline(高位买>0,5,高位买*0.1,2,0),color0099cc,linethick7;
DRAWTEXT(c>0 and 高位买 and BARSTATUS=2,60,'高位买进,注意风险!▲'),ALIGN2,COLOR00FFFF;
超短买:(c-ref(c,1))/ref(c,1)>0.03 and c<10,LINETHICK0,Color60FFFF;
DRAWTEXT(c>0 and 超短买 and BARSTATUS=2,0,'超短买,次日逢低买进◆'),ALIGN2,COLOR00FFFF;
osc:=c/ref(c,n)*100;
LC:=REF(CLOSE,1);
vr:=SUM(IF(CLOSE>LC,VOL,0),n)/SUM(IF(CLOSE<=LC,VOL,0),10)*100;
ar:=SUM(HIGH-OPEN,n)/SUM(OPEN-LOW,n)*100;
psy:=COUNT(CLOSE>REF(CLOSE,1),N)/N*100;
DRAWTEXT(c>0 and BARSTATUS=2,90,'电子股评,仅供参考');
DRAWTEXT(c>0 and BARSTATUS=2 and "macd.macd">0,75,'强势!'),coloryellow;
DRAWTEXT(c>0 and BARSTATUS=2 and ref("macd.macd",1)<0 and "macd.macd">0 or c>0 and BARSTATUS=2 and ref("macd.macd",1)>0 and "macd.macd"<0,0,'强弱转换,择情而动!');
|