What is [bar] > 0 ?
Author: akr
Creation Date: 12/20/2009 3:29 AM
profile picture

akr

#1
Hello,

can you describe what to following line do:
if(Lowest.Series( SMA.Series( Close,1 ), 2 )[bar] > 0 )

Lowest.Series(SMA.Series(Close,1),2)
determines the Lowest SMA of the last 2 Days I think,
but what is [bar] > 0 for?

Thank you.
profile picture

Eugene

#2
Hi Andreas,

As with any DataSeries, the square bracket [] that you see here is the so called indexer used to access a value at a specified bar. Although the line is out of context, and whatever is the purpose, but it checks if the resulting value is greater than 0.

P.S. Please consider using meaningful topic titles, thank you.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).