Open range screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #141053 quote
    Abz
    Participant
    Veteran

    found this simple code to detect open range at a certain time rang. Tried to use it as screener but i cant get the correct results. it would be prefferable to screen when  a bar close over the hh or below ll range.

     

    starttime = 070000
    endtime = 100000
     
    if intradaybarindex=0 then
    hh = 0
    ll = 0
    endif
     
    if time>=starttime and time<=endtime then
    if high>hh then
    hh = high
    endif
    if low<ll or ll=0 then
    ll = low
    endif
    endif
    
    
    
    XSignal= 0
    IF close => hh THEN
    XSignal = 1
    ELSIF close =< ll THEN
    XSignal = 2
    ENDIF
    //
    
    SCREENER[XSignal](XSignal AS "1=↑,2=↓")
    #145439 quote
    robertogozzi
    Moderator
    Master

    Maybe too many items returned, so I filtered them by volume, but it works fine

    I also used this modified version as an indicator to be adde to the price chart (not below):

    starttime = 070000
    endtime   = 100000
    if intradaybarindex=0 then
       hh = 0
       ll = 0
    endif
    if time>=starttime and time<=endtime then
       if high>hh then
          hh = high
       endif
       if low<ll or ll=0 then
          ll = low
       endif
    endif
    //XSignal= 0
    //IF close => hh THEN
    //XSignal = 1
    //ELSIF close =< ll THEN
    //XSignal = 2
    //ENDIF
    Return hh AS "High",LL AS "Low" //XSignal
    x-10.jpg x-10.jpg
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Open range screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Abz @abbas_sadiq Participant
Summary

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

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