牛股牛股耕耘区通达信公式 副图 源码附图
AA:=(EMA(C,4)-EMA(C,7))/EMA(C,7)*4000;
森林:AA,COLOR00FF00,LINETHICK1;
量:=(EMA(IF(C>=REF(C,2),V,(-V)),34)/MA(V,34))*100;
X26:=EMA(量,26),COLORFF00FF;
STICKLINE(X26>=REF(X26,1),0,X26,5,0),COLORWHITE;
STICKLINE(X26< REF(X26,1),0,X26,5,0),COLORDDDDDD;
土壤:EMA(量,9),COLORFF6633,LINETHICK1;
TJ1:=AA>=REF(AA,1);
TJ2:=土壤>=REF(土壤,1);
TJ3:=X26>=REF(X26,1);
牛股耕耘区:(TJ1+TJ2 +TJ3)>=2,COLORWHITE;
长叶:(牛股耕耘区 AND COUNT(牛股耕耘区,3)=1)*30,STICK,COLOR00FF00,LINETHICK5;
开花:(牛股耕耘区 AND CROSS(AA,10))*50,STICK,COLORYELLOW,LINETHICK5;
结果:((TJ1+TJ2 +TJ3)=3 AND AA>=20 AND COUNT(AA>REF(AA,1),3)=1)*80,STICK,COLORFF00FF,LINETHICK5;
IF(AA>=0, AA, 5),COLOR00FF00,LINETHICK2;
IF(AA< 0, AA, 5),COLORFF6600,LINETHICK2;
STICKLINE(X26>=REF(X26,1), X26, X26,8,0),COLORRED,LINETHICK1;
STICKLINE(X26< REF(X26,1), X26, X26,8,0),COLORWHITE,LINETHICK1;
STICKLINE(牛股耕耘区,-5,5,4,1),COLORWHITE,LINETHICK1;
STICKLINE((TJ1+TJ2 +TJ3)=3,-5,5,4,1),COLOR00FF00,LINETHICK1;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
AA赋值:(C的4日指数移动平均-C的7日指数移动平均)/C的7日指数移动平均*4000
输出森林:AA,COLOR00FF00,LINETHICK1
量赋值:(EMA(IF(C>=2日前的C,V,(-V)),34)/MA(V,34))*100
X26赋值:量的26日指数移动平均,COLORFF00FF
STICKLINE(X26>=1日前的X26,0,X26,5,0),画白色
STICKLINE(X26< 1日前的X26,0,X26,5,0),COLORDDDDDD
输出土壤:量的9日指数移动平均,COLORFF6633,LINETHICK1
TJ1赋值:AA>=1日前的AA
TJ2赋值:土壤>=1日前的土壤
TJ3赋值:X26>=1日前的X26
输出牛股耕耘区:(TJ1+TJ2 +TJ3)>=2,画白色
输出长叶:(牛股耕耘区 AND 统计3日满足牛股耕耘区的天数=1)*30,STICK,COLOR00FF00,LINETHICK5
输出开花:(牛股耕耘区 AND AA上穿10)*50,STICK,画黄色,LINETHICK5
输出结果:((TJ1+TJ2 +TJ3)=3 AND AA>=20 AND COUNT(AA>1日前的AA,3)=1)*80,STICK,COLORFF00FF,LINETHICK5
如果AA>=0返回 AA否则返回 5
如果AA< 0返回 AA否则返回 5
STICKLINE(X26>=1日前的X26, X26, X26,8,0),画红色,LINETHICK1
STICKLINE(X26< 1日前的X26, X26, X26,8,0),画白色,LINETHICK1
当满足条件牛股耕耘区时,在-5和5之间画柱状线
STICKLINE((TJ1+TJ2 +TJ3)=3,-5,5,4,1),COLOR00FF00,LINETHICK1