通达信风险控制与波段买卖合并源码指标公式
因为指标源码公式太多所以合并了一些源码看了很多老师的源码
此指标有叶老师的风险指标
也有别的老师波段源码合并而成
省了占用空间
波段 红买持股 黄卖也可观察波段的强度
STICKLINE(C>0,90,95,10,0),COLOR408000;
STICKLINE(C>0,10,5,10,0),COLOR408000;
HDY:=EMA (100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3);
DRAWBAND(HDY,RGB(255,000,139),10,RGB(255,255,71));
STICKLINE(C>0,90,10,10,0),COLOR000000;
风险值:HDY,COLORCYAN,LINETHICK1;
警示线:45,COLORMAGENTA,LINETHICK1,POINTDOT;
A:0,POINTDOT,COLORMAGENTA,LINETHICK3;
DIFF:= EMA(CLOSE,12) - EMA(CLOSE,26),COLORBLUE,LINETHICK2;
DEA1:=EMA(DIFF,9);0.10,COLORBLUE,LINETHICK2;
MACD: 2*(DIFF-DEA1)*60,LINETHICK0;
S1:=MACD<REF(MACD,1)AND MACD>0,COLORBLUE;
S2:=MACD<REF(MACD,1)/2 AND MACD<0;
STICKLINE(MACD>=0,MACD,0,5,1),COLORRED;
STICKLINE(S1,0,MACD,5,1),COLOR00FFFF;
928199329.jpg
928300705.jpg
|