Most recent High less todays low > x

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #206186 quote
    brucesbruces
    Participant
    Junior
    Hi, would be grateful with assistance on how to add a prorealtime proscreener to list indices (or other selected instruments) where the low of todays bar is > x points below the most recent high.  If a timeframe for the most recent high is required use 90 days, but this can be adjustable please.  Thank you, Bruce
    #206189 quote
    JSJS
    Participant
    Master

    Hi @bruces

    I’m not sure what you mean, do you want to screen if the most recent “high” minus “today Low” is bigger than xPoints: High – Dlow > xPoints

    In this case, I don’t understand what you mean by a 90-day time frame.

    Or do you want to screen over the last 90 days when the most recent “High” minus “DLow(i) > xPoints: High – Dlow(i) > xPoints

    In this case, the screener displays the number of days when this has taken place.

    #206217 quote
    brucesbruces
    Participant
    Junior
    Hi and thank you for responding.  Identify instruments where the previous major swing high (Gann) minus todays low is greater than or equal to x points.  Displaying the number of days would also be useful.  I hope that makes sense.  Thank you, Bruce
    #206228 quote
    JSJS
    Participant
    Master
    Hi @bruces Hereby the screener…
    xDaysBack = 10
    xPoints = 100
    
    For i = 1 to xDaysBack
    C1 = (DHigh(i) > DHigh(i-1) and DLow(i) > DLow(i-1)) and DHigh(i) - DLow(0) > xPoints
    Break
    Next
    
    Screener[C1](C1 as "HighGann-DLow ")
    
Viewing 4 posts - 1 through 4 (of 4 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

Most recent High less todays low > x


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
bruces @bruces Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by JSJS
3 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 12/22/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...