How to add an Indicator On Price – ProRealTime

How to add an Indicator On Price with ProRealTime v11? Follow this easy procedure to know how:

 

Share this

  1. giumagi • 08/16/2021 #

    Hi, hope all is fine with you. May I ask for help? I tried to add some indicators to price chart, but sometimes nothings happens, I cannot understand why. Is there any specific instructions to add? please find this indicator below…if I add to price chart no indicator appears, if I add from the bottom it’s okay..:
    / CCI divergences on CCI
    // Use this indicator in a new window

    N=40///N is the number of bars to look back for a divergence. Normal values are 20-40. Must be the same in both indicators

    miMACD = CCI[14](TYPICALPRICE)

    IF (BarIndex > 10+1+N) THEN

    ///divergencia bajista
    IF (miMACD[1]>miMACD AND miMACD[1]>miMACD[2]) THEN
    extremum2=miMACD[1]
    extremum1=highest[N](miMACD)

    preciomax2=close[1]
    preciomax=Highest[N](close)

    IF(extremum2preciomax[1]) THEN
    for i=1 to N
    if mimacd[i]=extremum1 then
    zz=i

    drawsegment (barindex[1], mimacd[1], barindex[zz], mimacd[zz]) coloured(200,0,0)
    endif
    next

    endif
    endif

    ///divergencia alcista
    IF (miMACD[1]<miMACD AND miMACD[1]extremum11 AND preciomin2<preciomin[1]) THEN
    for i2=1 to N
    if mimacd[i2]=extremum11[1] then
    zz2=i2

    drawsegment(barindex[1], mimacd[1], barindex[zz2], mimacd[zz2]) coloured(0,200,0)
    endif
    next
    ENDIF

    ENDIF
    endif

    return mimacd as "CCI", 0 as "0"

    • Nicolas • 08/16/2021 #

      Because this indicator should be below the price chart, as it is coded to show divergences on an MACD oscillator.

  2. Wolf • 362 days ago #

    This is not working for all indicators, only some.

    • Nicolas • 362 days ago #

      If an indicator is not made to display anything within the price scale, then you’ll see nothing 🙂 Just add it below with the other dedicated button to add an indicator

avatar
Register or

Top