“短线买卖”及选股公式源码
大盘MS:=EMA(100*(INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5)),5);
个股强:=EMA(100*(C-LLV(LOW,5))/(HHV(H,5)-LLV(LOW,5)),5);
K1:=BACKSET(个股强<REF(个股强,1),2);
个股弱:=IF(K1,个股强,DRAWNULL);
差值:=个股强-大盘MS,{POINTDOT};
0,POINTDOT;
STICKLINE( 个股强>0,0 ,个股强*1.0,4 ,0 )COLOR0000FF;
STICKLINE( 个股强>0,0 ,个股强*0.8,4 ,0 )COLOR0066FF;
STICKLINE( 个股强>0,0 ,个股强*0.6,4 ,0 )COLOR0099FF;
STICKLINE( 个股强>0,0 ,个股强*0.4,4 ,0 )COLOR00CCFF;
STICKLINE( 个股强>0,0 ,个股强*0.2,4 ,0 )COLOR00FFFF;
STICKLINE( 个股弱=个股弱,0 ,个股弱*1.0,4 ,0 )COLOR00FF00;
STICKLINE( 个股弱=个股弱,0 ,个股弱*0.8,4 ,0 )COLOR00CC33;
STICKLINE( 个股弱=个股弱,0 ,个股弱*0.6,4 ,0 )COLOR009933;
STICKLINE( 个股弱=个股弱,0 ,个股弱*0.4,4 ,0 )COLOR007733;
STICKLINE( 个股弱=个股弱,0 ,个股弱*0.2,4 ,0 )COLOR005500;
大盘MSD:EMA(100*(INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5)),5),COLORWHITE,LINETHICK1;
K2:=BACKSET(个股强>REF(个股强,1),2);
个股强买:IF(K2,个股强,DRAWNULL),COLORMAGENTA,LINETHICK3;
K3:=BACKSET(个股强<REF(个股强,1),2);
个股弱卖:IF(K3,个股强,DRAWNULL),COLORBLUE,LINETHICK3;
DRAWTEXT(CROSS(大盘MS,20),20,'大盘反弹'),COLORRED,LINETHICK3;
选股公式:(粉色线出现买入,应用于预警或许好点。为了减小风险我把选股位置设到40线下,这样信号也少点。希望能为大家起到帮助)
个股强:=EMA(100*(C-LLV(LOW,5))/(HHV(H,5)-LLV(LOW,5)),5);
K1:=个股强<REF(个股强,1);
K2:=个股强>REF(个股强,1);
个股弱:=IF(K1,个股强,DRAWNULL);
个股强买:=IF(K2,个股强,DRAWNULL);
XG:REF(个股弱,1) AND K2 AND 个股强买<40;
- 上一篇公式:资金导航副图源码
- 下一篇公式:通达信KDJ指标,决无未来。高手免进