Code Showing Error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #76820 quote
    Allonso
    Participant
    New

    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")
    
    
    #76821 quote
    Vonasi
    Moderator
    Master

    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")
    
    
    Screenshot_12.png Screenshot_12.png
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Code Showing Error


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Allonso @allonso Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Vonasi
7 years, 7 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 07/26/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...