Volatility (20) indicator

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #254071 quote
    segiesegie
    Participant
    Senior

    Hi,

    ProReal has the above indicator. Please help me with a screener for screening the “High-Low” percentage of a period (%) when it closes for example, above 10% from the previous close.

    Regards,
    Segie

    #254114 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Do you mean this?

    // Parameters definition
    volatilityPeriod = 20
    minPercentage = 10 // The 10% threshold mentioned
    
    // 1. Historic Volatility Calculation (The specific indicator requested)
    myVolatility = HistoricVolatility[volatilityPeriod](close)
    
    // 2. "High-Low" Percentage Calculation for the current period
    // We calculate the range (High-Low) relative to the closing price
    percentRange = ((high - low) / close) * 100
    
    // 3. Filter Condition: Close is 10% higher than previous close
    priceVariation = ((close - close[1]) / close[1]) * 100
    filterCondition = priceVariation > minPercentage
    
    // Screener Execution
    // Filters only assets meeting the 10% rise condition
    // Displays Historic Volatility and High-Low % in the result columns
    SCREENER[filterCondition](myVolatility AS "Historic Vol", percentRange AS "HighLow %")
    
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

Volatility (20) indicator


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
segie @segie Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván GonzálezIván González
9 months, 2 weeks ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 11/29/2025
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...