Momentum and Divergence
Author: 07nioe
Creation Date: 9/14/2014 3:33 PM
profile picture

07nioe

#1
Hi,

I modified the divergence example with the momentum indicator. But the System doesn't run. And i cannot find the error.

Could you please help?

Here is the code:

CODE:
Please log in to see this code.


Thank you
Niels
profile picture

Eugene

#2
QUOTE:
But the System doesn't run. And i cannot find the error.

Here is the error. In the bottom pane you could find the error line as indicated by compiler:

CODE:
Please log in to see this code.
profile picture

07nioe

#3
Thank you. But the strategy makes no trades. Logic error?

CODE:
Please log in to see this code.
profile picture

Eugene

#4
Sorry, please use this line instead:
CODE:
Please log in to see this code.

On-the-fly editing error: caught by C# operator precedence.