r/TradingviewPinescript • u/AccidentallyFamous1 • Jun 21 '26
r/TradingviewPinescript • u/AccidentallyFamous1 • Jun 21 '26
My ultimate indicator finally done took 2 weeks of building and testing but finally done
Can't wait to try it live
r/TradingviewPinescript • u/JoeCal853 • Oct 28 '25
Cannot call "alert condition" with argument "condition"="buy1". An argument of "series float" type was used but a "series bool" is expected
"swing_high_plot" works in plotshape but can't use variable in alerts or display functional? any idea how to fix?
plotshape provides a dot above candle and want to create an Alert and use the Display function to backtest
Thanks!!
swing_high_plot := is_swing_high ? high[swing_high_strength] : na
swing_low_plot := is_swing_low ? low[swing_low_strength] : na
plotshape(swing_high_plot, style=shape.circle, location=location.absolute, size=size.small, color=color.new(color.green, 70), offset=-swing_high_strength, title="Swing High Dot")
plotshape(swing_low_plot, style=shape.circle, location=location.absolute, size=size.small, color=color.new(color.red, 70), offset=-swing_low_strength, title="Swing Low Dot")
buy1=swing_high_plot
sell1=swing_low_plot
// === Alerts ===//
alertcondition(buy1, title="Buy1 Alert", message="BUY1")
alertcondition(sell1, title="Sell1 Alert", message="SELL1")
//..
plot(buy1?1:0,'buy1',display = display.data_window)
plot(sell1?1:0,'sell1',display = display.data_window)
r/TradingviewPinescript • u/ttc_pine • 12d ago
Tired of guessing the best inputs for your strategy? Here’s how I systematically find the top 5 settings
Ever spent hours (or days) tweaking two inputs on a strategy, only to realise the “good” settings stop working when the market regime changes?
That’s exactly why I built TTC Strategy + TTC Optimiser.

TTC Strategy looks at trend + support/resistance levels and paints coloured columns:
columns Turn Green → long signal
columns Turn Red → short signal
It has just two adjustable inputs. Simple idea… but finding the right combination for a specific symbol and timeframe is the real challenge.
that's where the optimiser comes in!

Instead of guessing, the Optimiser automatically tests hundreds of combinations (800 by default).
For every combination it runs a backtest on the available chart data, then ranks the results and shows you the top 5 based on either:
Highest Profitability, or
Highest Accuracy (win rate)
You can also filter by minimum/maximum number of trades, minimum PnL, minimum accuracy, set commission, and choose Long-only / Short-only / Both.
How to use the scripts
Drop the Optimiser on your chart
Choose custom ranges or one of the pre-built ranges
Pick your ranking criteria + filters
Run it → get the top 5 parameter sets
Plug the best ones into the actual TTC Strategy and review the full backtest report
Performance Reports
The following video present's the backtesting results of the TTC strategy using the best-performing parameter combinations identified by the TTC optimiser, based on the available chart data for the NIFTY 50 Index across eight timeframes: 1-minute, 3-minute, 5-minute, 10-minute, 15-minute, 30-minute, 1-hour and 4-hour.
detailed explanation of the scripts:
https://ttc-pine.github.io/TTC-strategy-and-optimiser/
Video tutorial on how to use the scripts:
youtu.be/wTk0xiiGbqU
TTC Strategy Link:
https://in.tradingview.com/script/xOOSVCnq-TTC-Strategy/
TTC Optimiser Link:
https://in.tradingview.com/script/tm3H7ppK-TTC-Optimiser/
We’d be happy to provide you with access to both scripts!
Simply share your TradingView username in the comments on Reddit or YouTube or TradingView, and we’ll arrange access for you.
We’d also love to hear your feedback! Please feel free to share your suggestions on what we could improve, enhance, or add to the scripts. Your feedback helps us make our tools better and more useful for everyone.
Curious what results other people are getting on different symbols/timeframes. Anyone else running systematic parameter searches on TradingView strategies? Happy to answer questions about how the optimiser works under the hood.
r/TradingviewPinescript • u/SubstantialShirt7409 • Sep 15 '26
Is possible experiment with XGBoost using Pine Script only?
Hello everyone, I am thequantscience on TradingView, and it's a pleasure to be here!
I'd love to share my test conducted today, where I essentially attempted to create a strategy based on an XGBoost model right inside Pine Script. This strategy is just a starting point, and I'm keen to build something truly unique alongside anyone who is excited and interested in this. I'd be more than happy to hear your thoughts on it!
Strategy Script: https://www.tradingview.com/script/69ZFfJ5L-XGBoost-Mini-Strategy-The-Quant-Science/
Happy trading)
r/TradingviewPinescript • u/darknightjs • Sep 11 '26
I built an All-in-One Liquidity Indicator for TradingView – Sessions, ORB, HTF FVGs, Volume Profile & Key Levels
r/TradingviewPinescript • u/khantrading • Sep 05 '26
Need a CSV export from premium trading view members
reddit.comr/TradingviewPinescript • u/Navayirk • Jun 27 '26
Printing values to CSV file for debugging
reddit.comr/TradingviewPinescript • u/AccidentallyFamous1 • Jun 09 '26
My remastered PRO version of my VWMA indicator: STRYK VWMA PRO
r/TradingviewPinescript • u/Novokain420 • May 19 '26
FRVP pine script for back test
looking to bulk back test and i need access to fixed range volume profile pine script but trading view doesn't seem to have it publicized, does anyone know where to find it or something similar? i have the most minimal pine coding experience so writing it from scratch isn't do-able for me
r/TradingviewPinescript • u/Adorable-Cucumber308 • Feb 11 '26
[Open Source] M.A.X. Hunter v15.5 – A "T-Minus" Earnings Drift Monitor for the US Top 30
r/TradingviewPinescript • u/z3rodarkbeing • Jan 26 '26
Pine Script Help Needed: Merge labels when levels share the same line (D + W) TradingView Indicator
reddit.comr/TradingviewPinescript • u/Cheap_Raspberry2345 • Nov 12 '25
Pine screener beta version
reddit.comr/TradingviewPinescript • u/darknightjs • Aug 30 '26
I built an All-in-One Volume Profile + ICT Liquidity indicator for TradingView
Hey everyone,
I just released my All-in-One Liquidity indicator for TradingView, built specifically around the levels I use for futures trading.
Instead of running multiple indicators at the same time, I wanted Volume Profile, liquidity levels, sessions and HTF FVGs all in one clean script.
The core of the indicator is the Volume Profile system, including:
• Previous Day VAH / POC / VAL
• Overnight VAH / POC / VAL
• Previous Week VAH / POC / VAL
• Previous Month VAH / POC / VAL
• Ability to keep previous profiles on the chart
• Extend previous profiles into current price
• Automatic date labels for historical profiles
• Automatic full-size contract volume data for micros (MNQ → NQ, MES → ES, MGC → GC)
It also includes:
• 15m / 1H / 4H FVG & Unmitigated FVG tracking
• HTF priority when FVGs overlap
• Asia, London, NY AM, Lunch & NY PM liquidity highs/lows
• Previous Day / Week High & Low
• Opening Range (ORB)
• 6AM 4H High / Low
• 9:30 1-minute High / Low
• Midnight, 6:00, 8:30, 9:30, 10:00 and other opening prices
• Automatic label management to keep the chart clean
• Fully customizable colors, styles and visibility
The goal was to create one indicator that gives me my Volume Profile framework and ICT liquidity references without cluttering the chart with a bunch of separate scripts.
It’s now available as a TradingView invite-only indicator.
Access is available through my Whop.
👉 https://www.tradingview.com/script/E4t26jam-Vp-Levels-ORB-Liquidity/
I’ll add some screenshots below showing the Volume Profiles, liquidity levels and HTF FVG system in action.
If you have any questions about how it works, feel free to ask.
r/TradingviewPinescript • u/Hd201092 • Aug 04 '26
Master Indicator using Pine Script Libraries
I am trying to build a trading indicator on pine script using Claude Code for VS Code. The indicator will combine multiple modules. All of these will work together to create one master indicator, which fires a trading signal. I am planning to use pine script libraries, so what is the best way to go about creating my master indicator? I am a beginner so any guidance would be great please :)
r/TradingviewPinescript • u/Physiotechnalysis • Mar 26 '26
Custom Premium Tradingview Indicators
I have few custom indicators:
Newton’s fade: This indicator detects abnormal bars to find entries for a reversal. This is one of the scripts that looks for a quick reversal of price:
https://www.tradingview.com/script/b3sI0IMP-Newton-s-Fade-Multi-Timeframe/
USI Delta Divergence: This indicator shows the strength and direction of a move and detects divergences between the USI Delta and the Price to enter into reversal trades.
https://www.tradingview.com/script/f6qeLzTI-USI-Delta-Divergence/
I also have a few other custom made indicators that might be of interest:
USI Quantum Pulse PRO: This scripts finds potential areas of consolidation as well as predicts the most likely direction of the breakout. https://www.tradingview.com/script/l9Rt3rAT-USI-Quantum-Pulse-PRO/
Zero-Lag USI: Similar to USI Quantum Pulse Pro, but is even quicker due to use of future predictive data rather than past data. Used for timing entries.
https://www.tradingview.com/script/j4cLrfUt-Zero-Lag-USI-Quantum-Pulse-PRO/
Data Distribution with Extreme Clusters: This indicator uses statistical methods to find areas where the price is at the extreme and is primed for a reversal. Pairs well with Zero-Lag USI.
https://www.tradingview.com/script/YRaiEGWd-Data-Distribution-with-Extreme-Clusters/
Click on the links above to read more about them, and IF you’re interested, I give FREE 7-day trials on all and any of them. Also, I give instructions on how to combine these to make a better, more informed trading decisions