Directional Index Custom

Forums ProRealTime English forum ProScreener support Directional Index Custom

Viewing 2 posts - 1 through 2 (of 2 total)
  • #246083

    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
    JS

    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]

Viewing 2 posts - 1 through 2 (of 2 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login