Indicator · Pine Script v6 · On the chart

MarketMerge Data Panel

by mgnyc11

MarketMerge Data Panel is a Pine Script indicator that overlays a customizable data panel on price charts to display company fundamentals.

View on GitHub

GitHub stars6on the repository
Pine versionv6current
Lines of code344
Settings6inputs
LicenceMIT
Last update8 months ago28 Feb 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above, or the copy button on the code below.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

344 lines of Pine Script v6 from marketmerge_data_panel.pine, published under MIT. Keep the author's credit and licence lines when you reuse it.

marketmerge_data_panel.pine
//@version=6
indicator("MarketMerge Data Panel", overlay=true)

// ============================================================================
// MARKETMERGE DATA PANEL v1.5 — Overlay table at bottom-left
// Separate indicator so you can hide/show independently from chart overlay
// ============================================================================

// === INPUTS ===
string grp_display = "Display"
bool showProfile    = input.bool(true, "Show Company Profile", group=grp_display)
bool showRatings    = input.bool(true, "Show Ratings", group=grp_display)
bool showEPS        = input.bool(true, "Show EPS Table", group=grp_display)
bool showFinancials = input.bool(true, "Show Financials", group=grp_display)
string panelSize    = input.string("small", "Text Size", options=["tiny", "small", "normal"], group=grp_display)

string grp_rs = "Relative Strength"
string rsBenchmark = input.symbol("SPY", "RS Benchmark", group=grp_rs)

// === TEXT SIZE ===
var string txtSize = panelSize == "tiny" ? size.tiny : panelSize == "small" ? size.small : size.normal

// === PANEL COLORS ===
color bgColor      = color.new(#ffffff, 0)
color borderColor  = color.new(#cccccc, 0)
color headerBg     = color.new(#f0f0f0, 0)
color labelColor   = color.new(#555555, 0)
color valueColor   = color.new(#111111, 0)
color greenColor   = color.new(#26a69a, 0)
color redColor     = color.new(#ef5350, 0)
color blueColor    = color.new(#2196f3, 0)
color yellowColor  = color.new(#ff9800, 0)

// === SYMINFO ===
string tickerId   = syminfo.tickerid
string tickerName = syminfo.ticker

// === FINANCIAL DATA ===
float sharesOut     = request.financial(tickerId, "TOTAL_SHARES_OUTSTANDING", "FQ")
float epsAnnual     = request.financial(tickerId, "EARNINGS_PER_SHARE", "FY")
float revenueAnnual = request.financial(tickerId, "TOTAL_REVENUE",      "FY")
float netIncome     = request.financial(tickerId, "NET_INCOME",          "FY")
float totalDebt     = request.financial(tickerId, "TOTAL_DEBT",          "FY")
float totalEquity   = request.financial(tickerId, "TOTAL_EQUITY",        "FY")

bool annEpsChanged = bar_index > 0 and not na(epsAnnual) and (na(epsAnnual[1]) or epsAnnual != epsAnnual[1])
float epsAnnualPrev = ta.valuewhen(annEpsChanged, epsAnnual[1], 0)

// === QUARTERLY FINANCIALS ===
float epsQuarterly = request.financial(tickerId, "EARNINGS_PER_SHARE", "FQ")
float revenueQtr   = request.financial(tickerId, "TOTAL_REVENUE",      "FQ")

bool epsChanged = bar_index > 0 and not na(epsQuarterly) and (na(epsQuarterly[1]) or epsQuarterly != epsQuarterly[1])
float epsQ_1 = ta.valuewhen(epsChanged, epsQuarterly[1], 0)
float epsQ_2 = ta.valuewhen(epsChanged, epsQuarterly[1], 1)
float epsQ_3 = ta.valuewhen(epsChanged, epsQuarterly[1], 2)
float epsQ_4 = ta.valuewhen(epsChanged, epsQuarterly[1], 3)
float epsQ_5 = ta.valuewhen(epsChanged, epsQuarterly[1], 4)

bool revChanged = bar_index > 0 and not na(revenueQtr) and (na(revenueQtr[1]) or revenueQtr != revenueQtr[1])
float revQ_1 = ta.valuewhen(revChanged, revenueQtr[1], 0)
float revQ_4 = ta.valuewhen(revChanged, revenueQtr[1], 3)

// === MOVING AVERAGES (for ratings/checks) ===
float ma50  = ta.sma(close, 50)
float ma150 = ta.sma(close, 150)
float ma200 = ta.sma(close, 200)
float volMA50 = ta.sma(volume, 50)

// === RS RATING ===
float benchClose = request.security(rsBenchmark, timeframe.period, close)
float rsLine = benchClose > 0 ? (close / benchClose) : na

float stockRet63  = bar_index >= 63  ? (close - close[63])  / close[63]  * 100 : 0
float stockRet126 = bar_index >= 126 ? (close - close[126]) / close[126] * 100 : 0
float stockRet189 = bar_index >= 189 ? (close - close[189]) / close[189] * 100 : 0
float stockRet252 = bar_index >= 252 ? (close - close[252]) / close[252] * 100 : 0

float benchRet63  = bar_index >= 63  ? (benchClose - benchClose[63])  / benchClose[63]  * 100 : 0
float benchRet126 = bar_index >= 126 ? (benchClose - benchClose[126]) / benchClose[126] * 100 : 0
float benchRet189 = bar_index >= 189 ? (benchClose - benchClose[189]) / benchClose[189] * 100 : 0
float benchRet252 = bar_index >= 252 ? (benchClose - benchClose[252]) / benchClose[252] * 100 : 0

float stockRS = stockRet63 * 0.4 + stockRet126 * 0.2 + stockRet189 * 0.2 + stockRet252 * 0.2
float benchRS = benchRet63 * 0.4 + benchRet126 * 0.2 + benchRet189 * 0.2 + benchRet252 * 0.2
float rsRaw = stockRS - benchRS
int rsRating = math.round(math.max(1, math.min(99, 50 + rsRaw * 1.5)))

// === DERIVED METRICS ===
float peRatio = epsAnnual > 0 ? close / epsAnnual : na
float roe = totalEquity > 0 ? (netIncome / totalEquity) * 100 : na
float debtEquity = totalEquity > 0 ? (totalDebt / totalEquity) : na
float epsGrowthAnn = (not na(epsAnnualPrev) and math.abs(epsAnnualPrev) > 0) ? ((epsAnnual - epsAnnualPrev) / math.abs(epsAnnualPrev)) * 100 : na
float epsQChg = (not na(epsQ_4) and math.abs(epsQ_4) > 0) ? ((epsQuarterly - epsQ_4) / math.abs(epsQ_4)) * 100 : na
float epsQ1Chg = (not na(epsQ_5) and math.abs(epsQ_5) > 0) ? ((epsQ_1 - epsQ_5) / math.abs(epsQ_5)) * 100 : na
float revQChg = (not na(revQ_4) and math.abs(revQ_4) > 0) ? ((revenueQtr - revQ_4) / math.abs(revQ_4)) * 100 : na
float margin = (not na(revenueAnnual) and revenueAnnual != 0) ? (netIncome / revenueAnnual) * 100 : na

int epsRatingRaw = na(epsQChg) ? 50 : epsQChg > 100 ? 95 : epsQChg > 50 ? 85 : epsQChg > 25 ? 75 : epsQChg > 10 ? 60 : epsQChg > 0 ? 45 : epsQChg > -10 ? 30 : 15
int compositeRating = math.round((rsRating * 0.4) + (epsRatingRaw * 0.4) + (50 * 0.2))

float upVol   = close > close[1] ? volume : 0.0
float downVol = close < close[1] ? volume : 0.0
float upVolSum   = math.sum(upVol, 50)
float downVolSum = math.sum(downVol, 50)
float udRatio = downVolSum > 0 ? upVolSum / downVolSum : na
string accDisRating = udRatio >= 1.5 ? "A" : udRatio >= 1.2 ? "B+" : udRatio >= 1.0 ? "B" : udRatio >= 0.8 ? "C+" : udRatio >= 0.6 ? "C" : udRatio >= 0.4 ? "D" : "E"

float smrS = not na(revQChg) and revQChg > 25 ? 30 : not na(revQChg) and revQChg > 10 ? 20 : 10
float smrM = not na(margin) and margin > 20 ? 30 : not na(margin) and margin > 10 ? 20 : 10
float smrR = not na(roe) and roe > 20 ? 30 : not na(roe) and roe > 10 ? 20 : 10
float smrScore = smrS + smrM + smrR
string smrRating = smrScore >= 80 ? "A" : smrScore >= 60 ? "B" : smrScore >= 40 ? "C" : "D"

float high52 = ta.highest(high, 252)
float low52  = ta.lowest(low, 252)
float offHigh52 = ((close - high52) / high52) * 100
float atr21 = ta.atr(21)
float atrPct = (atr21 / close) * 100

// === HELPER FUNCTIONS ===
getColor(float val, float hi, float mid) =>
    val >= hi ? greenColor : val >= mid ? yellowColor : redColor

getPctColor(float val) =>
    val > 0 ? greenColor : val < 0 ? redColor : labelColor

fmtPct(float val) =>
    na(val) ? "N/A" : (val >= 0 ? "+" : "") + str.tostring(val, "#.#") + "%"

fmtVal(float val, string fmt) =>
    na(val) ? "N/A" : str.tostring(val, fmt)

// === DATA PANEL TABLE ===
if barstate.islast
    var table panel = table.new(position.bottom_left, 4, 40, bgcolor=bgColor, border_color=borderColor, border_width=1)

    int row = 0

    // --- HEADER ---
    float dayChg = ((close - close[1]) / close[1]) * 100
    string chgStr = (dayChg >= 0 ? "+" : "") + str.tostring(dayChg, "#.##") + "%"
    table.cell(panel, 0, row, tickerName, text_color=valueColor, text_size=size.small, text_halign=text.align_left, bgcolor=headerBg)
    table.cell(panel, 1, row, "$" + str.tostring(close, "#.##"), text_color=valueColor, text_size=size.small, bgcolor=headerBg)
    table.cell(panel, 2, row, chgStr, text_color=dayChg >= 0 ? greenColor : redColor, text_size=size.small, bgcolor=headerBg)
    table.cell(panel, 3, row, "", bgcolor=headerBg)
    row += 1

    table.cell(panel, 0, row, str.tostring(volume / 1e6, "#.#") + "M", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 1, row, str.tostring(volMA50 / 1e6, "#.#") + "M", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 2, row, fmtPct(offHigh52), text_color=getPctColor(offHigh52), text_size=txtSize)
    table.cell(panel, 3, row, str.tostring(atrPct, "#.#") + "%", text_color=labelColor, text_size=txtSize)
    row += 1

    // === COMPANY PROFILE ===
    if showProfile
        table.cell(panel, 0, row, "─ PROFILE ─", text_color=blueColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 1, row, "", bgcolor=headerBg)
        table.cell(panel, 2, row, "", bgcolor=headerBg)
        table.cell(panel, 3, row, "", bgcolor=headerBg)
        row += 1

        string descRaw = syminfo.description
        string descShort = str.length(descRaw) > 18 ? str.substring(descRaw, 0, 15) + "..." : descRaw
        table.cell(panel, 0, row, descShort, text_color=valueColor, text_size=txtSize)
        table.cell(panel, 1, row, syminfo.prefix, text_color=labelColor, text_size=txtSize)
        float mktCap = not na(sharesOut) ? close * sharesOut : na
        string mktCapStr = na(mktCap) ? "N/A" : mktCap >= 1e12 ? "$" + str.tostring(mktCap / 1e12, "#.##") + "T" : mktCap >= 1e9 ? "$" + str.tostring(mktCap / 1e9, "#.#") + "B" : "$" + str.tostring(mktCap / 1e6, "#.#") + "M"
        table.cell(panel, 2, row, "MCap", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, mktCapStr, text_color=valueColor, text_size=txtSize)
        row += 1

        string secRaw = syminfo.sector
        string secShort = str.length(secRaw) > 14 ? str.substring(secRaw, 0, 11) + "..." : secRaw
        table.cell(panel, 0, row, secShort, text_color=valueColor, text_size=txtSize)
        string indRaw = syminfo.industry
        string indShort = str.length(indRaw) > 14 ? str.substring(indRaw, 0, 11) + "..." : indRaw
        table.cell(panel, 1, row, indShort, text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, "", text_size=txtSize)
        table.cell(panel, 3, row, "", text_size=txtSize)
        row += 1

    // === RATINGS ===
    if showRatings
        table.cell(panel, 0, row, "─ RATINGS ─", text_color=blueColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 1, row, "", bgcolor=headerBg)
        table.cell(panel, 2, row, "", bgcolor=headerBg)
        table.cell(panel, 3, row, "", bgcolor=headerBg)
        row += 1

        table.cell(panel, 0, row, "Comp", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, str.tostring(compositeRating), text_color=getColor(compositeRating, 80, 60), text_size=txtSize)
        table.cell(panel, 2, row, "EPS", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, str.tostring(epsRatingRaw), text_color=getColor(epsRatingRaw, 80, 60), text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "RS", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, str.tostring(rsRating), text_color=getColor(rsRating, 80, 60), text_size=txtSize)
        table.cell(panel, 2, row, "SMR", text_color=labelColor, text_size=txtSize)
        color smrClr = smrScore >= 80 ? greenColor : smrScore >= 60 ? blueColor : smrScore >= 40 ? yellowColor : redColor
        table.cell(panel, 3, row, smrRating, text_color=smrClr, text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "A/D", text_color=labelColor, text_size=txtSize)
        color adClr = nz(udRatio) >= 1.2 ? greenColor : nz(udRatio) >= 0.8 ? yellowColor : redColor
        table.cell(panel, 1, row, accDisRating, text_color=adClr, text_size=txtSize)
        table.cell(panel, 2, row, "U/D", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, fmtVal(udRatio, "#.##"), text_color=nz(udRatio) >= 1.0 ? greenColor : redColor, text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "P/E", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, fmtVal(peRatio, "#.#"), text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, "ROE", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, na(roe) ? "N/A" : str.tostring(roe, "#.#") + "%", text_color=nz(roe) >= 17 ? greenColor : labelColor, text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "52w Hi", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, str.tostring(high52, "#.##"), text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, "52w Lo", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, str.tostring(low52, "#.##"), text_color=valueColor, text_size=txtSize)
        row += 1

        bool above50 = close > ma50
        bool above200 = close > ma200
        bool trendOK = close > ma50 and close > ma150 and close > ma200 and ma50 > ma150 and ma150 > ma200
        table.cell(panel, 0, row, "> 50 DMA", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, above50 ? "✓" : "✗", text_color=above50 ? greenColor : redColor, text_size=txtSize)
        table.cell(panel, 2, row, "> 200 DMA", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, above200 ? "✓" : "✗", text_color=above200 ? greenColor : redColor, text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "Trend", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, trendOK ? "PASS ✓" : "FAIL", text_color=trendOK ? greenColor : redColor, text_size=txtSize)
        table.cell(panel, 2, row, "RS Ln", text_color=labelColor, text_size=txtSize)
        bool rsUp = rsLine > rsLine[20]
        table.cell(panel, 3, row, rsUp ? "▲ UP" : "▼ DN", text_color=rsUp ? greenColor : redColor, text_size=txtSize)
        row += 1

    // === EARNINGS ===
    if showEPS
        table.cell(panel, 0, row, "─ EPS ─", text_color=blueColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 1, row, "", bgcolor=headerBg)
        table.cell(panel, 2, row, "", bgcolor=headerBg)
        table.cell(panel, 3, row, "", bgcolor=headerBg)
        row += 1

        table.cell(panel, 0, row, "Ann", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, fmtVal(epsAnnual, "#.##"), text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, "Grw", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, fmtPct(epsGrowthAnn), text_color=getPctColor(nz(epsGrowthAnn)), text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "Qtr", text_color=labelColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 1, row, "EPS", text_color=labelColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 2, row, "YoY %", text_color=labelColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 3, row, "", bgcolor=headerBg)
        row += 1

        table.cell(panel, 0, row, "Latest", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, fmtVal(epsQuarterly, "#.##"), text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, fmtPct(epsQChg), text_color=getPctColor(nz(epsQChg)), text_size=txtSize)
        table.cell(panel, 3, row, "", text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "Prior", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, fmtVal(epsQ_1, "#.##"), text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, fmtPct(epsQ1Chg), text_color=getPctColor(nz(epsQ1Chg)), text_size=txtSize)
        table.cell(panel, 3, row, "", text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "Q-2", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, fmtVal(epsQ_2, "#.##"), text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, "Q-3", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, fmtVal(epsQ_3, "#.##"), text_color=valueColor, text_size=txtSize)
        row += 1

        bool accel = not na(epsQChg) and not na(epsQ1Chg) and epsQChg > epsQ1Chg
        table.cell(panel, 0, row, "Accel", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, accel ? "YES ✓" : "NO", text_color=accel ? greenColor : redColor, text_size=txtSize)
        table.cell(panel, 2, row, "Rev", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, fmtPct(revQChg), text_color=getPctColor(nz(revQChg)), text_size=txtSize)
        row += 1

    // === FINANCIALS ===
    if showFinancials
        table.cell(panel, 0, row, "─ FIN ─", text_color=blueColor, text_size=txtSize, bgcolor=headerBg)
        table.cell(panel, 1, row, "", bgcolor=headerBg)
        table.cell(panel, 2, row, "", bgcolor=headerBg)
        table.cell(panel, 3, row, "", bgcolor=headerBg)
        row += 1

        color margClr = nz(margin) > 10 ? greenColor : nz(margin) > 0 ? yellowColor : redColor
        table.cell(panel, 0, row, "Mgn", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, na(margin) ? "N/A" : str.tostring(margin, "#.#") + "%", text_color=margClr, text_size=txtSize)
        color deClr = nz(debtEquity) < 0.5 ? greenColor : nz(debtEquity) < 1.0 ? yellowColor : redColor
        table.cell(panel, 2, row, "D/E", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, na(debtEquity) ? "N/A" : str.tostring(debtEquity, "#.##"), text_color=deClr, text_size=txtSize)
        row += 1

        table.cell(panel, 0, row, "Rev", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 1, row, na(revenueAnnual) ? "N/A" : "$" + str.tostring(revenueAnnual / 1e9, "#.#") + "B", text_color=valueColor, text_size=txtSize)
        table.cell(panel, 2, row, "Net", text_color=labelColor, text_size=txtSize)
        table.cell(panel, 3, row, na(netIncome) ? "N/A" : "$" + str.tostring(netIncome / 1e6, "#.#") + "M", text_color=nz(netIncome) > 0 ? greenColor : redColor, text_size=txtSize)
        row += 1

    // === CANSLIM CHECKLIST ===
    table.cell(panel, 0, row, "─ CANSLIM ─", text_color=blueColor, text_size=txtSize, bgcolor=headerBg)
    table.cell(panel, 1, row, "", bgcolor=headerBg)
    table.cell(panel, 2, row, "", bgcolor=headerBg)
    table.cell(panel, 3, row, "", bgcolor=headerBg)
    row += 1

    bool cPass = not na(epsQChg) and epsQChg >= 25
    bool aPass = not na(epsGrowthAnn) and epsGrowthAnn >= 25
    bool nPass = offHigh52 >= -10
    bool sPass = nz(udRatio) >= 1.0
    bool lPass = rsRating >= 80
    bool iPass = compositeRating >= 70

    table.cell(panel, 0, row, "C Qtr EPS", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 1, row, cPass ? "✓" : "✗", text_color=cPass ? greenColor : redColor, text_size=txtSize)
    table.cell(panel, 2, row, "A Ann EPS", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 3, row, aPass ? "✓" : "✗", text_color=aPass ? greenColor : redColor, text_size=txtSize)
    row += 1

    table.cell(panel, 0, row, "N New Hi", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 1, row, nPass ? "✓" : "✗", text_color=nPass ? greenColor : redColor, text_size=txtSize)
    table.cell(panel, 2, row, "S Demand", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 3, row, sPass ? "✓" : "✗", text_color=sPass ? greenColor : redColor, text_size=txtSize)
    row += 1

    table.cell(panel, 0, row, "L Leader", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 1, row, lPass ? "✓" : "✗", text_color=lPass ? greenColor : redColor, text_size=txtSize)
    table.cell(panel, 2, row, "I Quality", text_color=labelColor, text_size=txtSize)
    table.cell(panel, 3, row, iPass ? "✓" : "✗", text_color=iPass ? greenColor : redColor, text_size=txtSize)
    row += 1

    int score = (cPass ? 1 : 0) + (aPass ? 1 : 0) + (nPass ? 1 : 0) + (sPass ? 1 : 0) + (lPass ? 1 : 0) + (iPass ? 1 : 0)
    color scoreClr = score >= 5 ? greenColor : score >= 3 ? yellowColor : redColor
    string scoreLabel = score >= 5 ? "BUY ZONE" : score >= 3 ? "WATCH" : "AVOID"
    table.cell(panel, 0, row, "SCORE", text_color=blueColor, text_size=txtSize, bgcolor=headerBg)
    table.cell(panel, 1, row, str.tostring(score) + "/6", text_color=scoreClr, text_size=size.small, bgcolor=headerBg)
    table.cell(panel, 2, row, scoreLabel, text_color=scoreClr, text_size=txtSize, bgcolor=headerBg)
    table.cell(panel, 3, row, "", bgcolor=headerBg)

Overview

MarketMerge Data Panel shows ratings including composite, RS, EPS, SMR, Acc/Dis, P/E, ROE and Minervini trend template checks. The panel presents earnings data with annual and quarterly EPS growth, revenue figures, EPS acceleration detection and financial metrics like margins and debt. A CANSLIM checklist automatically scores current quarterly EPS, annual growth, near new highs, supply/demand, leadership and institutional quality, labeling results as BUY ZONE, WATCH or AVOID. It also draws RS line versus benchmark, S&P 500 comparison, and moving averages including 21 EMA, 50 DMA, 150 DMA and 200 DMA with EPS surprise markers.

Details

Published by

mgnyc11 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Screeners & dashboards, Moving averages

Markets

Stocks

Timeframes

Any timeframe

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Show Company ProfilebooltrueshowProfile
Show RatingsbooltrueshowRatings
Show EPS TablebooltrueshowEPS
Show FinancialsbooltrueshowFinancials
Text SizestringsmallpanelSize
RS BenchmarksymbolSPYrsBenchmark
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

This overlay indicator plots a Supertrend from an ATR length and factor, four exponential moving averages, and a selectable VWAP or TWAP taken from a chosen timeframe on the price chart. It also shows MACD and stochastic with adjustable lengths, smoothing, ver

Indicator v5 Oscillators & momentumMoving averages
Updated 1 year ago · MPL-2.0 GitHub repository of Momentum Setup: Vijay Thakare Option Buying Scalping Setup
257 stars

This indicator plots a 200-period weighted moving average (WMA) on the main chart and monitors price deviations across multiple timeframes. It retrieves daily, 15-minute, 5-minute, and 2-minute price data to track distance from the 200 WMA relative to key sess

Indicator v5 Moving averagesSessions & time Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald SPX - Options Trading
218 stars

TradersPost Trading Checklist is an overlay indicator that evaluates a suite of popular technical conditions for long and short trade setups. It checks session-anchored VWAP, fast and slow EMA alignments and crosses, 200 SMA, RSI overbought or oversold conditi

Indicator v6 Screeners & dashboardsTrend
Updated 3 months ago · None stated GitHub repository of TradersPost Trading Checklist

8zz反指標v2

by hansai-art
121 stars

The 8zz Contrarian Indicator plots reverse sentiment trading signals directly on the price chart based on tracked retail post activity. It generates bullish signals during retail panic and bearish signals during market euphoria. The indicator features adjustab

Indicator v6 Moving averagesOscillators & momentum
Updated 3 months ago · None stated GitHub repository of 8zz反指標v2
92 stars

This indicator plots five moving averages of a chosen source on the price chart, defaulting to EMA lengths 10, 20, 30, 40 and 50. The user can switch the average type to SMA, WMA or HMA and recolor each line. Wide translucent glows sit under the lines, and sof

Indicator v5 TrendMoving averages
Updated 8 weeks ago · Custom licence GitHub repository of Moon Dev Rainbow MA Ribbon 10-50

Price vs MA

by be-thomas
65 stars

This indicator builds a table of simple moving averages and places it on the price chart. It calculates a user-chosen number of SMAs whose periods start at a base length and increase by a fixed step. On the last bar it lists each period and its SMA value, colo

Indicator v4 Moving averagesScreeners & dashboards
Updated 4 days ago · GPL-3.0 GitHub repository of Price vs MA

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers