{大盘副图 }
{个股和大盘主图叠加在一起看上去有点乱,不太方便。这个大盘副图指标也许对分析你有用。源码如下:}
ma5:ma(indexc,5);
ma13:ma(indexc,13);
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;