飞狐版本牛股战法
-
相关简介:先建一个公式ZMACD: {ZMACD} DIFF : EMA(CLOSE,25) - EMA(CLOSE,65); DEA : EMA(DIFF,45); 上面公式要单独建,建好后,再建一个公式牛股战法: {牛股战法} DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9); 牛股攻击 : 2*(DIFF-DEA), COLORSTICK; stickline(牛股攻击ref(牛股攻击,1) and diffdea,牛股攻击,0,10
-
文章来源:股海网作者:股海网发布时间:2014-01-25浏览次数:
先建一个公式“ZMACD”:
{ZMACD}
DIFF : EMA(CLOSE,25) - EMA(CLOSE,65);
DEA : EMA(DIFF,45);
上面公式要单独建,建好后,再建一个公式“牛股战法”:
{牛股战法}
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
牛股攻击 : 2*(DIFF-DEA), COLORSTICK;
stickline(牛股攻击>ref(牛股攻击,1) and diff>dea,牛股攻击,0,10,0),COLORRED;
stickline(牛股攻击>ref(牛股攻击,1) and diff>dea,牛股攻击,0,1,0),coloryellow;
A:"zMACD.DIFF#WEEK",LINETHICK2;
B:"zMACD.DEA#WEEK",LINETHICK2;
PARTLINE(a<ref(a,5),a),linethick2,colorblue;