個(gè)股買賣(個(gè)股強(qiáng)、個(gè)股弱、差值、大盤)-指標(biāo)公式源碼
大盤MS:=EMA(100*(INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5)),5);
個(gè)股強(qiáng):=EMA(100*(C-LLV(LOW,5))/(HHV(H,5)-LLV(LOW,5)),5);
K1:=BACKSET(個(gè)股強(qiáng)<REF(個(gè)股強(qiáng),1),2);
個(gè)股弱:=IF(K1,個(gè)股強(qiáng),DRAWNULL);
差值:=個(gè)股強(qiáng)-大盤MS,{POINTDOT};
0,POINTDOT;
STICKLINE( 個(gè)股強(qiáng)>0,0 ,個(gè)股強(qiáng)*1.0,4 ,0 )COLOR0000FF;
STICKLINE( 個(gè)股強(qiáng)>0,0 ,個(gè)股強(qiáng)*0.8,4 ,0 )COLOR0066FF;
STICKLINE( 個(gè)股強(qiáng)>0,0 ,個(gè)股強(qiáng)*0.6,4 ,0 )COLOR0099FF;
STICKLINE( 個(gè)股強(qiáng)>0,0 ,個(gè)股強(qiáng)*0.4,4 ,0 )COLOR00CCFF;
STICKLINE( 個(gè)股強(qiáng)>0,0 ,個(gè)股強(qiáng)*0.2,4 ,0 )COLOR00FFFF;
STICKLINE( 個(gè)股弱=個(gè)股弱,0 ,個(gè)股弱*1.0,4 ,0 )COLOR00FF00;
STICKLINE( 個(gè)股弱=個(gè)股弱,0 ,個(gè)股弱*0.8,4 ,0 )COLOR00CC33;
STICKLINE( 個(gè)股弱=個(gè)股弱,0 ,個(gè)股弱*0.6,4 ,0 )COLOR009933;
STICKLINE( 個(gè)股弱=個(gè)股弱,0 ,個(gè)股弱*0.4,4 ,0 )COLOR007733;
STICKLINE( 個(gè)股弱=個(gè)股弱,0 ,個(gè)股弱*0.2,4 ,0 )COLOR005500;
大盤MSD:EMA(100*(INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5)),5),COLORWHITE,LINETHICK1;
K2:=BACKSET(個(gè)股強(qiáng)>REF(個(gè)股強(qiáng),1),2);
個(gè)股強(qiáng)買:IF(K2,個(gè)股強(qiáng),DRAWNULL),COLORMAGENTA,LINETHICK3;
K3:=BACKSET(個(gè)股強(qiáng)<REF(個(gè)股強(qiáng),1),2);
個(gè)股弱賣:IF(K3,個(gè)股強(qiáng),DRAWNULL),COLORBLUE,LINETHICK3;
DRAWTEXT(CROSS(大盤MS,20),20,'大盤反彈'),COLORRED,LINETHICK3;
南方財(cái)富網(wǎng)小編整理(www.hnnqr.com)