P1:=5;P2:=10;P3:=20;P4:=30;P5:=60;P6:=120;
MA1:MA(CLOSE,P1);
MA2:MA(CLOSE,P2);
MA3:MA(CLOSE,P3);
MA4:MA(CLOSE,P4);
MA5:MA(CLOSE,P5);
MA6:MA(CLOSE,P6);
DRAWTEXTREL(4,20,'板块:'+BKNAME),COLOR00FF00,linethick1;
DRAWTEXTAbs(4,20 ,'流通盘:'+capital/1000000+'亿(小盘股<5个亿<中盘股<10亿<大盘股)'),COLOR00FF00,linethick1;
LC:=REF(CLOSE,1);
rsi1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
{- }
SELL2:=(crOSS(88,RSI1));
DRAWTEXT(SELL2,HIGH*1.02,' ★短出'),color00ff00,ALIGN1;
VB1:=C-REF(C,1);
VB2:=100*EMA(EMA(VB1,6),6)/EMA(EMA(ABS(VB1),6),6);
VB3:=IF(LLV(VB2,2)=LLV(VB2,7) AND COUNT(VB2<0,2) AND CROSS(VB2,MA(VB2,2)),1,0);
VB4:=filter(VB3=1,5);
DRAWTEXT(VB4,LOW*0.97,'★ 将军买点'),COLOR00FFFF;
选股公式:
VB1:=C-REF(C,1);
VB2:=100*EMA(EMA(VB1,6),6)/EMA(EMA(ABS(VB1),6),6);
VB3:=IF(LLV(VB2,2)=LLV(VB2,7) AND COUNT(VB2<0,2) AND CROSS(VB2,MA(VB2,2)),1,0);
VB4:=filter(VB3=1,5);
将军买点:VB4;