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



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

Please log in to see this code.

Please log in to see this code.

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

profile picture


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.
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).