分享一个标注斐波那契数列的指标--K线数量 主图指标

EMA12:EMA(CLOSE,12),COLORGREEN;
 EMA50:EMA(CLOSE,50),COLORYELLOW;

DRAWICON(CROSS(EMA12,EMA50),EMA12*0.95,38);
 DRAWICON(CROSS(EMA50,EMA12),EMA12*1.05,39);

 DRAWTEXT(CURRBARSCOUNT=5, L*0.95,'5')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=8, L*0.95,'8')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=13, L*0.95,'13')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=21, L*0.95,'21')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=34, L*0.95,'34')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=55, L*0.95,'55')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=89, L*0.95,'89')COLORGREEN;
 DRAWTEXT(CURRBARSCOUNT=250, L*0.95,'年')COLORGREEN;