九毛八公式指标
公式模块:
t1:=hhvbars(v,30);
cc1:ref(c,t1) linethick;
cc1:=cc1[datacount];
partline(barpos>=datacount-30+1,cc1);
t2:=hhvbars(v,60);
cc2:ref(c,t2) linethick;
cc2:=cc2[datacount];
partline(barpos>=datacount-60+1,cc2);
t3:=hhvbars(v,120);
cc3:ref(c,t3) linethick;
cc3:=cc3[datacount];
partline(barpos>=datacount-120+1,cc3); 这个量能平台公式现在想给这个公式做一个改变 .就是能不能把划线的起始位置该在那个点上 , 比如说在出现120日最高量的时候就在那一天开始向后划线 ,向后也是个延长线和原公式一样, 还有就是能不能在相应的线上显示数字啊 就是如果是120天的最高量 就在线的开始位置上显示120 ,,, 要是几个线都在重合的点上就显示最大天数的..
令改:
t1:=hhvbars(v,30);
cc1:ref(c,t1),colorffff,linethick;
t1:=t1[datacount];
cc1:=cc1[datacount];
partline(barpos>=datacount-t1,cc1),colorffff;
t2:=hhvbars(v,60);
cc2:ref(c,t2),colorff00,linethick;
t2:=t2[datacount];
cc2:=cc2[datacount];
partline(barpos>=datacount-t2,cc2),colorff00;
t3:=hhvbars(v,120);
cc3:ref(c,t3),colorff0000,linethick;
t3:=t3[datacount];
cc3:=cc3[datacount];
partline(barpos>=datacount-t3,cc3),colorff0000;
drawnumber(barpos=datacount-t1 and t1<>t2 and t1<>t3,L,30,0),colorffff,align;
drawnumber(barpos=datacount-t2 and t2<>t3,L,60,0),colorff00,align;
drawnumber(barpos=datacount-t3,L,120,0),colorff0000,align;
二个一起改的
t1:=hhvbars(v,30);
cc1:ref(c,t1),colorffff,linethick;
t1:=t1[datacount];
cc1:=cc1[datacount];
partline(barpos>=datacount-t1+1,cc1),colorffff;
t2:=hhvbars(v,60);
cc2:ref(c,t2),colorff00,linethick;
t2:=t2[datacount];
cc2:=cc2[datacount];
partline(barpos>=datacount-t2+1,cc2),colorff00;
t3:=hhvbars(v,120);
cc3:ref(c,t3),colorff0000,linethick;
t3:=t3[datacount];
cc3:=cc3[datacount];
partline(barpos>=datacount-t3+1,cc3),colorff0000;
DRAWTEXT(barpos=datacount-t3 and t3>=max(t2,t1),h,'120'),COLOR00dd00,PXUP10;
DRAWTEXT(barpos=datacount-t2 and t3>t2 and t2>=t1,h,'60'),COLOR00dd00,PXUP10;
DRAWTEXT(barpos=datacount-t1 and min(t3,t2)<t1,h,'30'),COLOR00dd00,PXUP10;