Is CrossOver equal to the Price below SMA?
Author: nicknecula
Creation Date: 4/1/2017 9:51 PM
profile picture

nicknecula

#1
Hi,

For some unknown reason, the following two lines of code cannot be interchanged in one of my strategies because they provide different running results:

CODE:
Please log in to see this code.


CODE:
Please log in to see this code.


I supposed that these statements should be equivalent, but it looks like they are not!

Thanks,
Nick
profile picture

Eugene

#2
Hi Nick,

They are not interchangeable. If you take a look in the QuickRef (F11 key) and start typing in the first letters of "CrossOver", you'll quickly find out what it means. CrossOver is a built-in function that is well documented. It's a separate condition which is more than a price dipping below a moving average.