开拓者期货期权程序化系统交易论坛
标题:
公式编写
[打印本页]
作者:
swufewxr
时间:
2011-2-23 10:51:30
标题:
公式编写
分时图中的那根黄色均线 怎么用公式表示呢?谢谢。
作者:
lh948
时间:
2011-2-23 14:51:43
技术指标代码如下
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
复制代码
欢迎光临 开拓者期货期权程序化系统交易论坛 (http://bbs.tb18.net/)
Powered by Discuz! X2