飞狐偏离K线副图指标
源码
{N
收盘价:close/ma(close,10), POINTDOT;
最高价:high/ma(high,10), POINTDOT;
最低价:low/ma(low,10), POINTDOT;
开盘价:OPEN/ma(OPEN,10), POINTDOT;
STICKLINE(收盘价>开盘价,最高价,最低价,0.5,1),COLOR00FFFF;
STICKLINE(收盘价<开盘价,最高价,最低价,0.5,0),COLORBLUE;
STICKLINE(收盘价>开盘价,收盘价,开盘价,5,1),COLOR00FFFF;
STICKLINE(收盘价<开盘价,收盘价,开盘价,5,0),COLORBLUE;
MA(收盘价,20),colorgreen;
Var1:=FORCAST(收盘价,10);
上轨: FORCAST(Var1*1.045,10), COLOrred;
下轨: FORCAST(Var1*0.955,10), COLORblue;
{上轨: FORCAST(Var1*1.045,N), COLOrred;
下轨: FORCAST(Var1*0.955,N), COLORblue;}