- 咨詢內(nèi)容: 日內(nèi)平均線指標(biāo)源碼
Vars
NumericSeries baramount;
NumericSeries barvol;
numericseries dayavg;
Begin
if(date!=Date[1])
{
baramount=close*Vol;
barvol=vol;
}else
{
baramount = baramount[1]+close*vol;
barvol = barvol[1]+vol;
}
dayavg = baramount / barvol;
Plotnumeric("dayavg",dayavg);
End
|