通达信大资金加速拉副图公式 指标源码 无未来
VAR1:=EMA(C,6)-EMA(C,12);
VAR2:=EMA(VAR1,5);
VAR3:=VAR1-VAR2;
VAR4:=ABS(C-O);
VAR5:=VOL/((H-L)*2-VAR4);
VAR6:=IF(C>O,VAR5*(H-L),IF(C<O,VAR5*(H-O+(C-L)),VOL/2))+IF(C>O,0-VAR5*(H-C+(O-L)),IF(C<O,0-VAR5*(H-L),0-VOL/2));
VAR7:=VAR6/20/1.15;
VAR8:=EMA(VAR7*0.55+REF(VAR7,1)*0.33+REF(VAR7,2)*0.22,3);
VAR9:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VAR9<REF(VAR10,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200,10,0);
VAR16:=IF(VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18<90,VAR18,100);
VAR20:=IF(MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20>0,MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20,0);
VAR21:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60;
VAR22:=VAR20>48 AND VAR21>60 AND VAR19<100;
STICKLINE(VAR8>0 AND VAR3>0,ABS(VAR3/30),0,1,0),COLORRED;
STICKLINE(VAR8>0 AND VAR3<0,0,ABS(VAR3/30),1,0),COLORGREEN;
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,0.025,' ←大资金建仓'),COLOR80FFFF;
STICKLINE(VAR11 AND COUNT(VAR11,30)=1,0,0.03,2,0),COLORFF00FF;
DRAWTEXT(VAR22 AND COUNT(VAR22,30)=1,0.025,' ←加速拉升'),LINETHICK1,COLOR0000FF;
STICKLINE(VAR22 AND COUNT(VAR22,30)=1,0,0.03,2,0),COLOR0000FF;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:C的6日指数移动平均-C的12日指数移动平均
VAR2赋值:VAR1的5日指数移动平均
VAR3赋值:VAR1-VAR2
VAR4赋值:C-O的绝对值
VAR5赋值:成交量/((H-L)*2-VAR4)
VAR6赋值:IF(C>O,VAR5*(H-L),IF(CO,0-VAR5*(H-C+(O-L)),IF(C
VAR7赋值:VAR6/20/1.15
VAR8赋值:EVAR7*0.55+1日前的VAR7*0.33+2日前的VAR7*0.22的3日简单移动平均
VAR9赋值:100-3*SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((收盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR10:=100-3*SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1)+2*SMA(SMA((开盘价-75日内最低价最低值)/(75日内最高价最高值-75日内最低价最低值)*100,20,1),15,1)
VAR11:=VAR9<1日前的VAR10 AND 成交量>1日前的成交量 AND 收盘价>1日前的收盘价
VAR12:=(最高价+最低价+收盘价)/3
VAR13:=(VAR12-VAR12的14日简单移动平均)/(0.015*AVEDEV(VAR12,14))
VAR14:=(VAR12-VAR12的70日简单移动平均)/(0.015*AVEDEV(VAR12,70))
如果VAR13>=150 AND VAR13<200 AND VAR14>=150 AND VAR14<200返回10否则返回0
如果VAR13<=-150 AND VAR13>-200 AND VAR14<=-150 AND VAR14>-200返回-10否则返回VAR15
VAR17:=(收盘价-收盘价的13日简单移动平均)/收盘价的13日简单移动平均*100
VAR18:=100-VAR17的绝对值
如果VAR18<90返回VAR18否则返回100
VAR20:=IF(MA(100*(收盘价-34日内收盘价最低值)/(34日内最高价最高值-34日内最低价最低值),5)-20>0,MA(100*(收盘价-34日内收盘价最低值)/(34日内最高价最高值-34日内最低价最低值),5)-20,0)
VAR21:=IF(VAR14>=200 AND VAR13>=150,15,IF(VAR14<=-200 AND VAR13<=-150,-15,VAR16))+60
VAR22:=VAR20>48 AND VAR21>60 AND VAR19<100
STICKLINE(VAR8>0 AND VAR3>0,VAR3/30的绝对值,0,1,0),画红色
STICKLINE(VAR8>0 AND VAR3<0,0,VAR3/30的绝对值,1,0),画绿色
DRAWTEXT(VAR11 AND 统计30日满足VAR11的天数=1,0.025,' ←大资金建仓'),COLOR80FFFF
STICKLINE(VAR11 AND 统计30日满足VAR11的天数=1,0,0.03,2,0),COLORFF00FF
DRAWTEXT(VAR22 AND 统计30日满足VAR22的天数=1,0.025,' ←加速拉升'),LINETHICK1,COLOR0000FF
STICKLINE(VAR22 AND 统计30日满足VAR22的天数=1,0,0.03,2,0),COLOR0000FF