PureBytes Links
Trading Reference Links
|
> What is the difference between these two operations in the context
> of moving averages crossing? Does one wait for the close of the
> bar while the other will signal intra-bar?
All system code gets executed at the close of the bar. Indicator
code can be executed intra-bar (if "Update Every Tick" is selected)
but that has no bearing on whether you use > or crosses.
"Greater than" means just that, >.
"Crosses over" means it was "less than or equal" last bar, and is
"greater than" this bar. In other words, it crossed over the value.
So let's say you look at "X > Y" and "X crosses over Y". They are
true on the bars marked by "*".
X 5 5 5 5 5 5 5 5 5
Y 1 2 3 4 5 6 7 8 9
Greater than * * * *
Crosses over *
Gary
|