通达信游资资金动能抓牛副图指标公式源码:
主力线:=(EMA(C,10)*7+EMA(C,20)*3)/10;
龙龙抓牛:=主力线,COLORRED,LINETHICK3;
龙龙抓牛1:=IF(C>龙龙抓牛,龙龙抓牛,DRAWNULL),COLORRED,LINETHICK3;
龙龙抓牛2:=(C*2+H+L)/4;牛牛起飞:=EMA(龙龙抓牛2,5)-EMA(龙龙抓牛2,22);
擒牛起飞:=EMA(牛牛起飞,5);资金动能:(2*(牛牛起飞-擒牛起飞))*3.8,COLORSTICK;
动能支撑:=EMA(资金动能,4);STICKLINE(资金动能<动能支撑,0,资金动能,1,0),COLORGREEN;
STICKLINE(资金动能>=动能支撑,0,资金动能,1,0),COLORRED;DIF:=EMA(C,12)-EMA(C,26);
DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);MACD红:=MACD>=-0.009;
昨天绿:=REF(资金动能,1)<REF(动能支撑,1);今天红:=资金动能>动能支撑;
绿转红:=昨天绿 AND 今天红;红中绿转红:=MACD红 AND 绿转红;
STICKLINE(红中绿转红,资金动能,0,2,0),COLORYELLOW;
动能线:动能支撑,COLORMAGENTA,LINETHICK2;
龙飞凤舞:IF(动能线<REF(动能线,1),动能线,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWICON(龙龙抓牛1 AND (资金动能>=动能支撑),0,1);