OPEN-SOURCE SCRIPT
Trade Levels - Entry, Trims & Stop

A clean, fully configurable trade planning overlay for scalpers, day traders, and swing traders on any instrument โ Futures, Forex, Crypto, Equities, and Indices. Set your entry price, define your risk parameters, and instantly visualize every critical level on the chart before and during a trade.
๐ Key Features
Entry Line โ White reference line at your exact entry price, labeled with direction (Long/Short)
Stop Loss โ Plots your maximum loss level at a defined distance from entry
Take Profit โ Plots your full target with a live R:R ratio calculated automatically
3 Independent Trim Levels โ Each trim can be placed on the Profit Side OR Loss Side of your entry, allowing you to plan early exits in either direction (e.g., trimming before max loss)
Zone Fills โ Translucent color fills between Entry โ Stop and Entry โ Target for instant visual clarity
Info Table โ A real-time summary table (top-right corner) showing all prices and distances at a glance
Full Alert Integration โ alertcondition() support for all 5 levels: Stop, Take Profit, Trim 1, Trim 2, and Trim 3
โ๏ธ Settings Overview
Group What You Set
๐ Entry Settings Entry price, Long/Short direction, Points or Ticks mode
๐ด Stop Loss Points/Tick Distance from entry, line color
๐ข Take Profit Points/Tick Distance from entry, line color
โ๏ธ Trim 1 / 2 / 3 Enable toggle, Profit or Loss side, Points/Tick distance, trim size %, color
๐ Alerts Toggle alerts on/off per level
โ๏ธ Display Labels, R:R visibility, zone fills, table, line style, label size
๐ Points vs. Ticks
Switch the Unit Mode under Entry Settings between:
Points โ Native price units (e.g., 10 = 10 full points on NQ)
Ticks โ Minimum tick increments (e.g., on NQ: 1 point = 4 ticks, so 40 ticks = 10 points)
The indicator uses syminfo.mintick to auto-convert, so it works accurately on any symbol.
โ๏ธ Loss-Side Trims Explained
Most indicators only allow trims in the profit direction. This tool lets you place a trim on the Loss Side of your entry โ meaning you scale out of part of your position before reaching your full stop. This is a common risk management technique used by professional futures and forex traders to reduce average loss on losing trades.
To use it: enable a Trim, set Side โ Loss Side, and dial in the distance. The label will display as "LOSS TRIM" to visually distinguish it from profit-side trims.
๐ Setting Up Alerts
Click the Alerts bell icon on the TradingView toolbar
Click "+" โ Create Alert
Under Condition, select "Trade Levels โ Entry, Trims & Stop"
Choose a level: Stop Loss Hit, Take Profit Hit, Trim 1, Trim 2, or Trim 3
Set your notification method (popup, sound, mobile push, or webhook)
Click Create
๐ Tips for Scalpers
Set your entry price before you take the trade so the levels are pre-drawn when your order fills
Use Loss-Side Trim 1 to take off 25โ33% of your position if price moves against you early โ this lowers your average loss significantly over time
The live R:R ratio on the TP label updates instantly as you adjust your distances โ use it to ensure you never take a sub-1:1 trade
Works on all timeframes and all instruments โ ES, NQ, MNQ, EUR/USD, BTC, SPY, anything
๐ Key Features
Entry Line โ White reference line at your exact entry price, labeled with direction (Long/Short)
Stop Loss โ Plots your maximum loss level at a defined distance from entry
Take Profit โ Plots your full target with a live R:R ratio calculated automatically
3 Independent Trim Levels โ Each trim can be placed on the Profit Side OR Loss Side of your entry, allowing you to plan early exits in either direction (e.g., trimming before max loss)
Zone Fills โ Translucent color fills between Entry โ Stop and Entry โ Target for instant visual clarity
Info Table โ A real-time summary table (top-right corner) showing all prices and distances at a glance
Full Alert Integration โ alertcondition() support for all 5 levels: Stop, Take Profit, Trim 1, Trim 2, and Trim 3
โ๏ธ Settings Overview
Group What You Set
๐ Entry Settings Entry price, Long/Short direction, Points or Ticks mode
๐ด Stop Loss Points/Tick Distance from entry, line color
๐ข Take Profit Points/Tick Distance from entry, line color
โ๏ธ Trim 1 / 2 / 3 Enable toggle, Profit or Loss side, Points/Tick distance, trim size %, color
๐ Alerts Toggle alerts on/off per level
โ๏ธ Display Labels, R:R visibility, zone fills, table, line style, label size
๐ Points vs. Ticks
Switch the Unit Mode under Entry Settings between:
Points โ Native price units (e.g., 10 = 10 full points on NQ)
Ticks โ Minimum tick increments (e.g., on NQ: 1 point = 4 ticks, so 40 ticks = 10 points)
The indicator uses syminfo.mintick to auto-convert, so it works accurately on any symbol.
โ๏ธ Loss-Side Trims Explained
Most indicators only allow trims in the profit direction. This tool lets you place a trim on the Loss Side of your entry โ meaning you scale out of part of your position before reaching your full stop. This is a common risk management technique used by professional futures and forex traders to reduce average loss on losing trades.
To use it: enable a Trim, set Side โ Loss Side, and dial in the distance. The label will display as "LOSS TRIM" to visually distinguish it from profit-side trims.
๐ Setting Up Alerts
Click the Alerts bell icon on the TradingView toolbar
Click "+" โ Create Alert
Under Condition, select "Trade Levels โ Entry, Trims & Stop"
Choose a level: Stop Loss Hit, Take Profit Hit, Trim 1, Trim 2, or Trim 3
Set your notification method (popup, sound, mobile push, or webhook)
Click Create
๐ Tips for Scalpers
Set your entry price before you take the trade so the levels are pre-drawn when your order fills
Use Loss-Side Trim 1 to take off 25โ33% of your position if price moves against you early โ this lowers your average loss significantly over time
The live R:R ratio on the TP label updates instantly as you adjust your distances โ use it to ensure you never take a sub-1:1 trade
Works on all timeframes and all instruments โ ES, NQ, MNQ, EUR/USD, BTC, SPY, anything
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.