Skip to main content

Add chart for PCR and Adv-decline

I want the charts for PCR in the option data tab of Punch. And chart also for advance and decline.

Status: Backlog3 comments

Log in to comment and vote

Comments3

  • PANKAJ KUMAR RAJ

    •

    Jul 4

    //@version=6 indicator("Manual NIFTY PCR Indicator", shorttitle="PCR Manual", overlay=false)

    // ===== INPUT ===== pcr = input.float(1.00, title="Enter Current PCR", step=0.01) maLength = input.int(5, title="PCR MA Length", minval=1)

    // ===== CALCULATION ===== pcrMA = ta.sma(pcr, maLength)

    // ===== SIGNAL ===== bullish = pcr > 1.20 bearish = pcr < 0.80 neutral = pcr >= 0.80 and pcr <= 1.20

    // ===== PLOT ===== plot(pcr, title="PCR", color=color.blue, linewidth=2) plot(pcrMA, title="PCR MA", color=color.orange, linewidth=2)

    hline(1.20, "Bullish Zone", color=color.green) hline(1.00, "Neutral", color=color.gray) hline(0.80, "Bearish Zone", color=color.red)

    // ===== BACKGROUND ===== bgcolor(bullish ? color.new(color.green, 85) : bearish ? color.new(color.red, 85) : color.new(color.yellow, 85))

    // ===== SIGNALS ===== plotshape(bullish, title="BUY", text="BUY", style=shape.triangleup, location=location.bottom, color=color.green)

    plotshape(bearish, title="SELL", text="SELL", style=shape.triangledown, location=location.top, color=color.red)

    // ===== ALERTS ===== alertcondition(bullish, title="Bullish PCR", message="PCR Above 1.20 - Bullish")

    alertcondition(bearish, title="Bearish PCR", message="PCR Below 0.80 - Bearish")

    • Archit Sunat

      •

      Jul 5

      @PANKAJ KUMAR RAJ Please use the pinescript feature on desktop to plot this on your chart.

  • PANKAJ KUMAR RAJ

    •

    Jul 4

    I want the charts for PCR in the option data tab of Punch. And chart also for advance and decline.