Min qty return

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #159801 quote
    davidshenton
    Participant
    New

    Hello – I created a new screener using the assisted ‘Simplified Creation’ and upon running the screener I received a message indicating that my screener returned 4 results but the code entered requires 5. Can anyone help identify the part of the code that defines the qty to return. I’d like to change this to 1.

    #159807 quote
    robertogozzi
    Moderator
    Master

    You should post the code.

    #159813 quote
    davidshenton
    Participant
    New

    Sorry, new user and first post. Code below

    • CALL “Pro-Tradingsystem-v3.9″[1, 1, 1.5, 3, 6, 0.35, 1, 1.5, 0, 1, 5000, 1, 0, 1, 1, 1, 1, 1, 0, 0] CROSSES OVER CALL “Pro-Tradingsystem-v3.9″[1, 1, 1.5, 3, 6, 0.35, 1, 1.5, 0, 1, 5000, 1, 0, 1, 1, 1, 1, 1, 0, 0]
    #159815 quote
    robertogozzi
    Moderator
    Master

    CALL cannot be use this way, it can only be used to assign returned values (if any) to variables, it should be:

    a = CALL "Pro-Tradingsystem-v3.9"[1, 1, 1.5, 3, 6, 0.35, 1, 1.5, 0, 1, 5000, 1, 0, 1, 1, 1, 1, 1, 0, 0]
    b = CALL "Pro-Tradingsystem-v3.9"[1, 1, 1.5, 3, 6, 0.35, 1, 1.5, 0, 1, 5000, 1, 0, 1, 1, 1, 1, 1, 0, 0]

    but there are three issues:

    1. both lines use the same parameters, hence a crossover will never occur (nothing can cross over itself)
    2. there are so many parameters, make sure they are the correct number required by the indicator (it’s the number of variables used by that indicator)
    3. the two lines above assume one value is returned, but the correct number is those of the values following the instruction RETURN (can be 0 or N).

    Can you post a link to that indicator?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Min qty return


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
5 years, 1 month ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 01/29/2021
Status: Active
Attachments: No files
Logo Logo
Loading...