個股買賣(個股強、個股弱、差值、大盤)-指標(biāo)公式源碼
大盤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;
南方財富網(wǎng)小編整理(nuqn.cn)