Directional Index Custom

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #246083 quote
    jbeagle2
    Participant
    New

    Hi All,

     

    I’ve been trying to create a screen with a custom indicator but am running into the difficulty of  finding some functions that allow me to integrate the high of an indicator on an intraday chart (5 min).

    The formula would go something like:

    (DIplus – DIminus)  crosses over the intraday high (5 min) of (DIplus – DI minus)

    I’ve seen functions that code for the high of price but I can’t seem  to find any thing to integrate the high of an indicator.

    #246095 quote
    JS
    Participant
    Senior

    Hi,

    You can use “High” or “Highest” not only for price, but also for an indicator. For example:

    xDIplus = DIplus[14](Close)

    If you want to determine the “Highest” value of this indicator, you can use:

    HighestDIplus = Highest[period](xDIplus)

    So, you replace the price (Close) with “xDIplus”.

    For the “period”, you can set a custom value.

    For instance, on a 5-minute chart, you could use a period of 288 (since 288 x 5 minutes = 1 trading day).

    Your formula would then look like this:

    xDIplus = DIplus[14](Close)

    xDIminus = DIminus[14](Close)

    DIdiff = abs(xDIplus – xDIminus)

    HighestDIdiff = Highest[288](DIdiff)

    CrossOver = DIdiff crosses over HighestDIdiff[1]

    robertogozzi and Iván González thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Directional Index Custom


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
jbeagle2 @jbeagle2 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
10 months, 2 weeks ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/19/2025
Status: Active
Attachments: No files
Logo Logo
Loading...