inequalities (range) of an indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #162114 quote
    gnellas77
    Participant
    Average

    hi there, if somene can help i have 2 questions,

    i want to screen stocks with an indicator (for eg ADX indicator) that moves in a range between lets say 13000-14000 value for the last 10 consecutive periods.

    i thought the code would look like:

    ADX[14] > 13000 AND ADX[14] < 14000 AND
    ADX[14][1] > 13000 AND ADX[14][1] < 14000 AND
    ADX[14][2] > 13000 AND ADX[14][2] < 14000 AND
    ...
    ADX[14][9] > 13000 AND ADX[14][9] < 14000 AND

    is there any shortest way/command to use to achieve my goal?

    thank you

    #162120 quote
    robertogozzi
    Moderator
    Master

    I know yours is just an example, because ADX can never be that high!

    There you go:

    Periods = 10
    MyAdx   = Adx[14]
    Cond    = summation[Periods]((MyAdx >= 15) AND (MyAdx <= 35)) = Periods
    SCREENER[Cond]
    gnellas77 thanked this post
    #162125 quote
    gnellas77
    Participant
    Average

    thank you mr. Roberto Gozzi

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

inequalities (range) of an indicator


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
gnellas77 @gnellas77 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by gnellas77
5 years ago.

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