先要建立引用公式:
{涨幅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;
|