如何在通达信k线最近10天的k线上添加1-10数字 请编公式

2025-05-12 00:56:54
推荐回答(1个)
回答1:

ZDF:=H/50;
DRAWTEXT(C>0 AND CURRBARSCOUNT=10,H+ZDF,'10')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=9,H+ZDF,'9')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=8,H+ZDF,'8')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=7,H+ZDF,'7')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=6,H+ZDF,'6')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=5,H+ZDF,'5')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=4,H+ZDF,'4')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=3,H+ZDF,'3')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=2,H+ZDF,'2')COLORYELLOW;
DRAWTEXT(C>0 AND CURRBARSCOUNT=1,H+ZDF,'1')COLORYELLOW;
添加到主图,或附图叠加K线。这样就可以了。