protected override void OnBarUpdate()
{
if ((High[0] - Low[0]) == 0)
{
bop.Set(0) ;
}
else
{
bop.Set((Close[0] - Open[0]) / (High[0] - Low[0])) ;
}
Value.Set(SMA(bop, smooth)[0]) ;
}
I'd like to multiple this by volume :
bop.Set((Close[0] - Open[0]) / (High[0] - Low[0])) ;
But I can't get it to compile without errors .
bop.Set((Close[0] - Open[0]) / (High[0] - Low[0])) * Volume[0] ;
Seems straight forward ?
Comment