盈筹主散 改编 BY SHUHONG指标公式[通达信公式]
相关标签:
{盈筹主散 改编 BY SHUHONG}{主力吸筹}
原理解析:
来源:程序化99( WWW.CXH99.COM )
源码:
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,' WWW.CXH99.COM '),COLORRED;
DRAWTEXT_FIX(C>O,1,1,0,'程序化交易模型'),COLORRED;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容