Holy Grail Setup scanner

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

    Hi,

    Can someone help me to program a scanner to find a “holy grail” setup. I just can’t get it right.

    I want to scan the following:

    • ADX(14) is higher than 30
    • ADX(14) in this period is higher than ADX(14) in the last period
    • Current bar high is higher than SMA(20) and current bar low is lower than SMA(20)

    I was successful with the ADX, but how do I program the bar high and lows?

    Regards,

     

    Johan

    #27149 quote
    robertogozzi
    Moderator
    Legend

    This is the piece of code you are looking for (I did not test it):

       .
       .
       .
    AdxValue = ADX[14](close)
    MAvalue  = Average[20](close)
       .
       .
       .
    c1 = AdxValue > 30
    c2 = AdxVal   > AdxVal[1]
    c3 = high > MAvalue
    c4 = low  < MAvalue
    
    IF c1 AND c2 AND c3 AND c4 THEN
       .
       .
       .
    ENDIF
    
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Holy Grail Setup scanner


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
johan_s @johan_s Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
9 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/04/2017
Status: Active
Attachments: No files
Logo Logo
Loading...