相關標簽:
?
{盈籌主散 改編 BY SHUHONG}{主力吸籌}
?
?
原理解析:
?
?
?
?來源:程序化99( m.kzuj.com.cn )
源碼:
VAR1B:=IF(YEAR>=2038 AND MONTH>=1,0,1);
VAR2B:=REF(LOW,1)*VAR1B;
VAR3B:=SMA(ABS(LOW-VAR2B),3,1)/SMA(MAX(LOW-VAR2B,0),3,1)*100*VAR1B;
VAR4B:=EMA(IF(CLOSE*1.3,VAR3B*10,VAR3B/10),3)*VAR1B;
VAR5B:=LLV(LOW,30)*VAR1B;
VAR6B:=HHV(VAR4B,30)*VAR1B;
VAR7B:=IF(MA(CLOSE,58),1,0)*VAR1B;
VAR8B:=EMA(IF(LOW<=VAR5B,(VAR4B+VAR6B*2)/2,0),3)/618*VAR7B*VAR1B;
吸籌:=IF(VAR8B>100,100,VAR8B)*VAR1B,COLORRED;
莊家吸籌:STICKLINE(吸籌>-150,0,吸籌,8,1),COLORRED;{莊家籌碼波段}
莊籌:=WINNER(CLOSE)*100,COLORWHITE;
籌碼集中度:EMA(莊籌,20),COLORWHITE;
籌碼集中警戒線:EMA(籌碼集中度,5),COLORWHITE;
籌碼集中生命線:EMA(籌碼集中警戒線,5),COLORWHITE;
DRAWBAND(籌碼集中警戒線,RGB(192,0,0),籌碼集中生命線,RGB(0,192,0));
DRAWBAND(籌碼集中度,RGB(255,0,0),籌碼集中警戒線,RGB(0,255,0));{籌碼獲利比例}
籌碼獲利比:WINNER(CLOSE)*100,COLOR8080FF;
STICKLINE(籌碼獲利比>0,籌碼獲利比,0,0,-1),COLOR8080FF;{主力線散戶線}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,3),NODRAW;D:=SMA(K,9,3),NODRAW;
J:=3*K-2*D,NODRAW;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(MA(CLOSE,58),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8>100,100,VAR8);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
趨勢線:CEILING(SMA(AA5,13,8)),COLORYELLOW,LINETHICK2;
散戶線: 100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),COLORCYAN,LINETHICK2;
主力線:EMA(J,6),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(ISLASTBAR,主力線,' ←主力線'),COLORLIMAGENTA;
DRAWTEXT(ISLASTBAR,散戶線,' ←散戶線'),COLORCYAN;
DRAWTEXT(ISLASTBAR,趨勢線,' ←趨勢線'),COLORYELLOW;{說明}
DRAWTEXT_FIX(C>0,0.02,0.01,0,'淺紅細柱線是籌碼獲利的百分比例;'),COLORGRAY;
DRAWTEXT_FIX(C>0,0.02,0.08,0,'紅色綠色彩條是莊家籌碼波段指標;'),COLORGRAY;
DRAWTEXT_FIX(C>0,0.02,0.15,0,'主力線上穿散戶線看多,下穿看空;'),COLORGRAY;DRAWTEXT_FIX(C>O,0.01,0.9,0,' m.kzuj.com.cn '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
?
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?