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.
Size:
Color:
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.
Size:
Color:
Thanks for the quick response! I'll check it out.
Size:
Color: