源代码:
da=(3*close+open+low+high)/6;
draw(da,color="white");
db=(20*da+19*refBefore(da,1)+18*refBefore(da,2)+17*refBefore(da,3)+16*refBefore(da,4)+15*refBefore(da,5)+14*refBefore(da,6)+13*refBefore(da,7)+12*refBefore(da,8)+11*refBefore(da,9)+10*refBefore(da,10)+9*refBefore(da,11)+8*refBefore(da,12)+7*refBefore(da,13)+6*refBefore(da,14)+5*refBefore(da,15)+4*refBefore(da,16)+3*refBefore(da,17)+2*refBefore(da,18)+refBefore(da,20))/210;
draw(db,color="#f0f000");
dc=ma(db,5);
draw(dc,color="yellow");
drawStickBetweenIf(dc>db,dc,db,color="red",fill=true,linewidth=2.5);
drawStickBetweenIf(db>dc,dc,db,color="green",fill=true,linewidth=2.5);
买点=isCrossUp(db,dc)&&db>dc;
drawText(买点,db*0.98,"买点",color="yellow");
卖点=isCrossUp(dc,db)&&dc>db;
drawText(卖点,dc*1.02,"卖点",color="yellow");
????????????
来源:金色财经
郑重声明: 本文版权归原作者所有, 转载文章仅为传播更多信息之目的, 如作者信息标记有误, 请第一时间联系我们修改或删除, 多谢。