指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:动能短线--短线操作的利器公式 飞狐动能指标 源码
【动能短线】-- 短线操作的利器
{【动能短线】}
{===================== 功能开关 =====================}
osc:=c-ref(ma(c,13),5);
分界:=ma(osc,8);
diff := ema(osc,12) - ema(osc,26);
dea:= ema(diff,9);
macd := 2*(diff-dea);
z_f:=if(c>ref(h,1),ema(l,5),if(c<ref(ema(l,5),1),h,ema(l,5)));
k_d:=barslast(c<=z_f);
x_h:=k_d=1 and barslast(macd<ref(macd,1));
{===================== 【解模板】===================== }
drawgbk((date > 0),colorrgb(40,40,60),colorrgb(10,10,10),1);
{柱线}
stickline(macd<ref(macd,1) and macd<0,0,macd*4,0,0),linedot,colorffcf78;
stickline(macd<ref(macd,1) and macd>0,0,macd*4,0,0),linedot,coloryellow;
stickline(macd>ref(macd,1) and macd<0,0,macd*4,0,0),linedot,colormagenta;
stickline(macd>ref(macd,1) and macd>0,0,macd*4,0,0),linedot,colorred;
{k柱}
stickline(osc<ref(osc,1)||(amount/ref(amount,1)<0.97),osc,ref(osc,1),7,0),linethick2,colorwhite;//离场
stickline(cross(ref(macd,1),macd) and macd<ref(macd,1),osc,ref(osc,1),7,0),linethick2,coloryellow;//逃顶
stickline(osc>=ref(osc,1),osc,ref(osc,1),7,0),linethick2,colorred;//持股
stickline(barslast(x_h)<2,osc,ref(osc,1),7,0),linethick2,colorred;//延时
stickline(x_h,osc,ref(osc,1),7,0),linethick2,colormagenta;//启动
stickline(osc<分界,osc,ref(osc,1),7,0),linethick2,colorffa900;//空仓
动能线:osc,colorffb5ff;
加速线:(dea-diff)*9.8,colorgreen;
{字}
drawtext(barpos=sysparam(3),0,' 启动'),align4,colormagenta;
drawtext(barpos=sysparam(3),0,' \n 持股'),pxdn3,align4,colorred;
drawtext(barpos=sysparam(3),0,' \n \n 逃顶'),pxdn6,align4,coloryellow;
drawtext(barpos=sysparam(3),0,' \n \n \n 警惕'),pxdn9,align4,colorwhite;
drawtext(barpos=sysparam(3),0,' \n \n \n \n 空仓'),pxdn12,align4,colorffa900;
>>>使用本站搜索工具可以找到更多“动能短线--短线操作的利器公式 飞狐动能指标 源码”