oscillator – How to find how long its been above a certain number

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #162781 quote
    cc267cc267
    Participant
    Average

    Hello, I want to build a screener which looks at chande momentum – i want to see how many times it has stayed above value 15 in the past 90 days 50% of the time. So it would return any stock that has been above 15 45 days out of 90 in this instance.  any help is appreciated with this.

    #162807 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    There you go:

    ChandeMom = Chandle[20](close) > 15
    Result    = summation[90](ChandeMom)
    SCREENER[Result >= 45](Result AS "Periods")
    #162844 quote
    cc267cc267
    Participant
    Average

    Thankyou Roberto, may i ask does chandle [20] refer to the moving average of the osc?

    #162846 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Yes, it does, as from attached pic.

    Actually this is the only datum that Chande Oscillator returns.

    x.jpg x.jpg
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

oscillator – How to find how long its been above a certain number


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
cc267 @cc267 Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzirobertogozzi
5 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/28/2021
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...