大智慧,个股,大盘,对照同显,指标公式
大多数投资者都接受这样一个理念:“看大盘,做个股”,那么,能否把大盘指数和个股在一个画面显示呢?答案是:能!
用法很直观,图片中算是抛砖引玉,用法自己去体会吧?我就不废话了……
先要建立引用公式:
{涨幅1}
收盘价:c;
开盘价:o;
最高价:h;
最低价:l;
{沪大盘}
沪市收盘价:=STKINDI('SH000001','涨幅1.收盘价');
沪市开盘价:=STKINDI('SH000001','涨幅1.开盘价');
沪市最高价:=STKINDI('SH000001','涨幅1.最高价');
沪市最低价:=STKINDI('SH000001','涨幅1.最低价');
MA1:MA(沪市收盘价,5);
MA2:MA(沪市收盘价,10);
MA3:MA(沪市收盘价,20);
MA4:MA(沪市收盘价,30);
MA5:MA(沪市收盘价,60);
MA6:MA(沪市收盘价,120);
{以下设置五彩立体K线}
STICKLINE(沪市收盘价>沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价>REF(沪市收盘价,1),沪市最低价,沪市最高价,0.1,0),LAYER1,colorred;
STICKLINE(沪市收盘价>沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价>REF(沪市收盘价,1),沪市开盘价,沪市收盘价,7,0),LAYER1,colorred;
STICKLINE(沪市收盘价<沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价<=REF(沪市收盘价,1),沪市最低价,沪市最高价,0.1,0),LAYER1,colorcyan;
STICKLINE(沪市收盘价<沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价<=REF(沪市收盘价,1),沪市开盘价,沪市收盘价,7,0),LAYER1,colorcyan;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,0,0 ),LAYER1,COLOR00FF00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,8,0 ),LAYER1,COLOR008800;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,7,0 ),LAYER1,COLOR009900;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,6,0 ),LAYER1,COLOR00AA00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,5,0 ),LAYER1,COLOR00BB00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,4,0 ),LAYER1,COLOR00CC00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,3,0 ),LAYER1,COLOR00DD00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,2,0 ),LAYER1,COLOR00EE00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,1,0 ),LAYER1,COLOR00FF00;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,0,0),LAYER1 ,COLORFFBBFF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,8,0),LAYER1 ,COLORFF00FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,7,0),LAYER1 ,COLORFF22FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,6,0) ,LAYER1,COLORFF44FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,5,0),LAYER1 ,COLORFF66FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,4,0),LAYER1 ,COLORFF88FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,3,0),LAYER1 ,COLORFF99FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,2,0),LAYER1 ,COLORFFAAFF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,1,0),LAYER1 ,COLORFFBBFF;
{深大盘}
沪市收盘价:=STKINDI('SH000001','涨幅1.收盘价');
沪市开盘价:=STKINDI('SH000001','涨幅1.开盘价');
沪市最高价:=STKINDI('SH000001','涨幅1.最高价');
沪市最低价:=STKINDI('SH000001','涨幅1.最低价');
MA1:MA(沪市收盘价,5);
MA2:MA(沪市收盘价,10);
MA3:MA(沪市收盘价,20);
MA4:MA(沪市收盘价,30);
MA5:MA(沪市收盘价,60);
MA6:MA(沪市收盘价,120);
{以下设置五彩立体K线}
STICKLINE(沪市收盘价>沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价>REF(沪市收盘价,1),沪市最低价,沪市最高价,0.1,0),LAYER1,colorred;
STICKLINE(沪市收盘价>沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价>REF(沪市收盘价,1),沪市开盘价,沪市收盘价,7,0),LAYER1,colorred;
STICKLINE(沪市收盘价<沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价<=REF(沪市收盘价,1),沪市最低价,沪市最高价,0.1,0),LAYER1,colorcyan;
STICKLINE(沪市收盘价<沪市开盘价 or 沪市收盘价=沪市开盘价 and 沪市收盘价<=REF(沪市收盘价,1),沪市开盘价,沪市收盘价,7,0),LAYER1,colorcyan;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,0,0 ),LAYER1,COLOR00FF00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,8,0 ),LAYER1,COLOR008800;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,7,0 ),LAYER1,COLOR009900;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,6,0 ),LAYER1,COLOR00AA00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,5,0 ),LAYER1,COLOR00BB00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,4,0 ),LAYER1,COLOR00CC00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,3,0 ),LAYER1,COLOR00DD00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,2,0 ),LAYER1,COLOR00EE00;
STICKLINE(沪市开盘价>=沪市收盘价 ,沪市收盘价 ,沪市开盘价,1,0 ),LAYER1,COLOR00FF00;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,0,0),LAYER1 ,COLORFFBBFF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,8,0),LAYER1 ,COLORFF00FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,7,0),LAYER1 ,COLORFF22FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,6,0) ,LAYER1,COLORFF44FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,5,0),LAYER1 ,COLORFF66FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,4,0),LAYER1 ,COLORFF88FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,3,0),LAYER1 ,COLORFF99FF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,2,0),LAYER1 ,COLORFFAAFF;
STICKLINE(沪市收盘价>沪市开盘价,沪市收盘价,沪市开盘价,1,0),LAYER1 ,COLORFFBBFF;