Hi,
This is not my code but was taken from a trading site I use, although I have copied it as is,, it will not operate and displays message “Does Not Contain Code”.
Can anyone please show me how to correct it, Please….. Allonso
“Daily breakout code”
c2 = Close > 5.0
indicator2 = Volume
indicator3 = (Average[20] (Volume)) * 1.5
c3 = indicator2 > indicator3
c4 = (average[20] (Volume)) > 200000
indicator4 = Average[40](Close)
indicator5 = Average[120](Close)
c5 = (indicators4 >= indicator5)
indicator6 = (highest[40] (high[1]))
c6 = (close >= indicator6)
criteria = Volume
SCREENER (c2 AND c3 AND c4 AND c5 AND c6) (criteria AS "volume")
Please use the ‘Insert PRT Button’ when posting code to make it more readable for everyone. I will tidy up your post for you. 🙂
You have used the wrong type of brackets on the SCREENER instruction. It should be:
SCREENER [c2 AND c3 AND c4 AND c5 AND c6] (criteria AS "volume")
You can easily identify the error as the PRT highlights the line for you:
[attachment file=76822]
Line 8 also has a typo on the indicator name – an extra ‘s’ has crept in.
The corrected code is:
c2 = Close > 5.0
indicator2 = Volume
indicator3 = (Average[20] (Volume)) * 1.5
c3 = indicator2 > indicator3
c4 = (average[20] (Volume)) > 200000
indicator4 = Average[40](Close)
indicator5 = Average[120](Close)
c5 = (indicator4 >= indicator5)
indicator6 = (highest[40] (high[1]))
c6 = (close >= indicator6)
criteria = Volume
SCREENER [c2 AND c3 AND c4 AND c5 AND c6] (criteria AS "volume")