40 Day Channel Breakout w/ Trend Filter
Author: AALMOHSEN
Creation Date: 4/29/2014 5:43 AM
profile picture

AALMOHSEN

#1
Hi,

Please find the code below, i built this code using the wizard. it enter Long when price is above 40 day high with a trend filter. What i dont understand why the use of ROC in the data series. is there a way to use a more basic code for this strategy? im not a programmer.


Your comments on this code is highly appreciated. Thanks in advance.



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

Eugene

#2
Hi Abdulla,

QUOTE:
What i dont understand why the use of ROC in the data series.

Not only you. ;) Furthermore, it does not always behave as one'd expect it to: "Price crosses below price from previous day" does not always work. Consequently, this ROC.GetSeriesValue piece is going to be replaced with more straightforward code in an upcoming update.

Here's a streamlined version of your code:

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

AALMOHSEN

#3
Thanks for the quick response! I'll check it out.