九毛八公式指标
公式模块:
请老师帮忙修改一个大盘副图的指标公式,这个公式就是光秃秃的大盘k线.想请老师将K线当日的高低点,开盘收盘及当日涨跌幅加上去能显示就行了.刚才在论坛找到一个但输不进.说字符不匹配.真的非常感谢您.大智慧新一代.非常感谢您,先谢了.
下面是公式源码;
STICKLINE( INDEXo>INDEXc,INDEXh ,INDEXl ,0.2 ,0 ),colorCYAN;
STICKLINE( INDEXo>INDEXc,INDEXc ,INDEXo ,8 ,0 ),colorCYAN;
STICKLINE( INDEXc>INDEXo,INDEXh ,INDEXl ,0.2 ,1 ),colorred;
STICKLINE( INDEXc>INDEXo,INDEXc ,INDEXo ,8 ,1 ),colorred;
STICKLINE( INDEXo=INDEXc and INDEXc<ref(INDEXc,1),INDEXh ,INDEXl ,0.2 ,0 ),colorCYAN;
STICKLINE( INDEXo=INDEXc and INDEXc<ref(INDEXc,1),INDEXc ,INDEXo ,8 ,0 ),colorCYAN;
STICKLINE( INDEXc=INDEXo and INDEXc>=ref(INDEXc,1),INDEXh ,INDEXl ,0.2 ,1 ),colorred;
STICKLINE( INDEXc=INDEXo and INDEXc>=ref(INDEXc,1),INDEXc ,INDEXo ,8 ,1 ),colorred;
STICKLINE( INDEXo>INDEXc,INDEXh ,INDEXl ,0.2 ,0 ),colorCYAN;
STICKLINE( INDEXo>INDEXc,INDEXc ,INDEXo ,8 ,0 ),colorCYAN;
STICKLINE( INDEXc>INDEXo,INDEXh ,INDEXl ,0.2 ,1 ),colorred;
STICKLINE( INDEXc>INDEXo,INDEXc ,INDEXo ,8 ,1 ),colorred;
STICKLINE( INDEXo=INDEXc and INDEXc<ref(INDEXc,1),INDEXh ,INDEXl ,0.2 ,0 ),colorCYAN;
STICKLINE( INDEXo=INDEXc and INDEXc<ref(INDEXc,1),INDEXc ,INDEXo ,8 ,0 ),colorCYAN;
STICKLINE( INDEXc=INDEXo and INDEXc>=ref(INDEXc,1),INDEXh ,INDEXl ,0.2 ,1 ),colorred;
STICKLINE( INDEXc=INDEXo and INDEXc>=ref(INDEXc,1),INDEXc ,INDEXo ,8 ,1 ),colorred;
DRAWTEXTABS(2,2,'最高价:'+H+' ')*1,LINETHICK1,COLORGREEN;
DRAWTEXTABS(82,2,'最低价:'+L+' ')*1,LINETHICK1,COLORBROWN;
DRAWTEXTABS(162,2,'收盘价:'+C+' ')*1,LINETHICK1,COLORGREEN;
DRAWTEXTABS(242,2,'开盘价:'+O+' ')*1,LINETHICK1,COLORRED;
DRAWTEXTABS(322,2,'涨幅:'+(C/DYNAINFO(3)-1)*100+' ')*1,LINETHICK1,colorff0099;