币圈指标:快慢线+DMI综合指标 含买卖点提示(附源码)




火币现货 ETH/USDT 12h



源代码:

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");



源代码复制、粘贴到爱交易就能用

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容