Indicator · Pine Script v6 · On the chart

Setup Receipt Template

by HugoRS00

A manual annotation indicator for the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code70
Settings10inputs
LicenceNone statedfile: MPL-2.0
Last update4 months ago7 Jun 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

70 lines of Pine Script v6 from tools/tradingview/setup-receipt-template.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.

setup-receipt-template.pine
// This Pine Script® code is subject to the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// TradingWizard 30-Day Public AI Trading Scanner Challenge
// Purpose: mark the plan before the result. Entry, stop, target, confidence. No fake PnL.

//@version=6
indicator("Setup Receipt Template — Plan First", overlay=true, max_labels_count=20)

showReceipt = input.bool(true, "Show setup receipt")
setupName = input.string("30-Day Scanner Challenge", "Setup label")
direction = input.string("BUY", "Direction", options=["BUY", "SELL", "WAIT"])
status = input.string("OPEN SETUP", "Status", options=["OPEN SETUP", "CLOSED WIN", "CLOSED LOSS", "WAIT", "SKIPPED"])
entry = input.float(0.0, "Entry", step=0.01)
stop = input.float(0.0, "Stop / invalidation", step=0.01)
target = input.float(0.0, "Target", step=0.01)
confidence = input.int(50, "Confidence", minval=0, maxval=100)
source = input.string("TradingWizard.ai proof challenge", "Source")
note = input.string("Setup first. Story later.", "Note")

validEntry = entry > 0
validStop = stop > 0
validTarget = target > 0

entryColor = color.new(color.aqua, 0)
stopColor = color.new(color.red, 0)
targetColor = color.new(color.lime, 0)
neutralColor = color.new(color.gray, 15)

plot(validEntry ? entry : na, title="Entry", color=entryColor, linewidth=2, style=plot.style_linebr)
plot(validStop ? stop : na, title="Stop / invalidation", color=stopColor, linewidth=2, style=plot.style_linebr)
plot(validTarget ? target : na, title="Target", color=targetColor, linewidth=2, style=plot.style_linebr)

var label entryLabel = na
var label stopLabel = na
var label targetLabel = na

if barstate.islast
    label.delete(entryLabel)
    label.delete(stopLabel)
    label.delete(targetLabel)
    if validEntry
        entryLabel := label.new(bar_index, entry, "ENTRY " + str.tostring(entry, format.mintick), style=label.style_label_left, textcolor=color.white, color=entryColor)
    if validStop
        stopLabel := label.new(bar_index, stop, "STOP " + str.tostring(stop, format.mintick), style=label.style_label_left, textcolor=color.white, color=stopColor)
    if validTarget
        targetLabel := label.new(bar_index, target, "TARGET " + str.tostring(target, format.mintick), style=label.style_label_left, textcolor=color.white, color=targetColor)

statusColor = status == "CLOSED WIN" ? color.new(color.lime, 0) : status == "CLOSED LOSS" ? color.new(color.red, 0) : status == "OPEN SETUP" ? color.new(color.orange, 0) : neutralColor
dirColor = direction == "BUY" ? color.new(color.lime, 0) : direction == "SELL" ? color.new(color.red, 0) : neutralColor

var table receipt = table.new(position.top_right, 2, 8, border_width=1, frame_color=color.new(color.white, 75), border_color=color.new(color.white, 85))

if barstate.islast and showReceipt
    table.cell(receipt, 0, 0, "SETUP RECEIPT", text_color=color.white, bgcolor=color.new(color.black, 0))
    table.cell(receipt, 1, 0, setupName, text_color=color.white, bgcolor=color.new(color.black, 0))
    table.cell(receipt, 0, 1, "Direction", text_color=color.white, bgcolor=color.new(color.black, 15))
    table.cell(receipt, 1, 1, direction, text_color=color.white, bgcolor=dirColor)
    table.cell(receipt, 0, 2, "Status", text_color=color.white, bgcolor=color.new(color.black, 15))
    table.cell(receipt, 1, 2, status, text_color=color.white, bgcolor=statusColor)
    table.cell(receipt, 0, 3, "Entry", text_color=color.white, bgcolor=color.new(color.black, 15))
    table.cell(receipt, 1, 3, validEntry ? str.tostring(entry, format.mintick) : "—", text_color=color.white, bgcolor=color.new(color.black, 25))
    table.cell(receipt, 0, 4, "Stop", text_color=color.white, bgcolor=color.new(color.black, 15))
    table.cell(receipt, 1, 4, validStop ? str.tostring(stop, format.mintick) : "—", text_color=color.white, bgcolor=color.new(color.black, 25))
    table.cell(receipt, 0, 5, "Target", text_color=color.white, bgcolor=color.new(color.black, 15))
    table.cell(receipt, 1, 5, validTarget ? str.tostring(target, format.mintick) : "—", text_color=color.white, bgcolor=color.new(color.black, 25))
    table.cell(receipt, 0, 6, "Confidence", text_color=color.white, bgcolor=color.new(color.black, 15))
    table.cell(receipt, 1, 6, str.tostring(confidence) + "/100", text_color=color.white, bgcolor=color.new(color.black, 25))
    table.cell(receipt, 0, 7, source, text_color=color.silver, bgcolor=color.new(color.black, 35))
    table.cell(receipt, 1, 7, note, text_color=color.silver, bgcolor=color.new(color.black, 35))

alertcondition(validEntry and validStop and validTarget, title="Setup receipt ready", message="Setup receipt has entry, stop, target and confidence defined.")

Overview

The user types in an entry, stop and target price, a direction, a status and a confidence number, and the script draws those three levels as lines with labels and shows a small summary table in the corner. It performs no market analysis and generates no signals, so it only displays what the user enters as a record of a planned trade.

Details

Published by

HugoRS00 on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Support & resistance, Screeners & dashboards

Markets

Any symbol

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.

Topics

ai-tradingmarket-scannerpaper-tradingproof-ledgertrading-bottradingwizard

Settings

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

SettingTypeDefaultVariable
Show setup receiptbooltrueshowReceipt
Setup labelstring30-Day Scanner ChallengesetupName
DirectionstringBUYdirection
StatusstringOPEN SETUPstatus
Entryfloat0.0entry
Stop / invalidationfloat0.0stop
Targetfloat0.0target
Confidenceint50confidence
SourcestringTradingWizard.ai proof challengesource
NotestringSetup first. Story later.note
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

575 stars

This overlay indicator scans a pasted list of symbols for ICT liquidity sweep patterns using prior swing sweeps. The screening method looks back one, two, or three swings and can list long and short signals in a results table with adjustable rows, position, an

Indicator v5 SMC / ICT / price actionScreeners & dashboards
Updated 1 year ago · MPL-2.0 GitHub repository of ICT Liquidity Sweep Pattern Scanner
330 stars

This indicator monitors multiple cryptocurrency symbols for trading signals. It calculates and plots entry prices, take profit, and stop loss levels for each symbol including BTCUSDT, ETHUSDT, BNBUSDT and others. Price crossovers trigger buy, sell or close ale

Indicator v5 Support & resistanceScreeners & dashboards
Updated 2 months ago · None stated GitHub repository of Multi Alert Long/Short [Alorse]

BZ-tracker

by Allen1212
303 stars

The BZ-tracker indicator marks ARK Invest buy and sell transactions on stock charts with labels. It plots green labels for purchases and red labels for sales, each annotated with a multiplier such as X1 or X2 to show the number of ARK ETFs trading the stock on

Indicator v4 Support & resistanceScreeners & dashboards
Updated 2 years ago · None stated GitHub repository of BZ-tracker
257 stars

This indicator overlays an intraday SPX and ES chart with a midnight session range, regular-trading-hours opening levels, and a VWAP projection box. It draws the midnight high, mid, and low, flags edge rejections within an absolute tolerance, and plots optiona

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of SPX Midnight Box + Snag Logic

Golden Bullet Strategy

by TradersPost
218 stars

The Golden Bullet Strategy is an overlay signal indicator based on Smart Money Concepts and time-based liquidity models. It identifies liquidity sweeps of a designated reference session range during a specified hunt window. It then confirms Market Structure Sh

Indicator v6 SMC / ICT / price actionSessions & time
Updated 3 months ago · None stated GitHub repository of Golden Bullet Strategy

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