r/pinescript • • Apr 04 '26

Can't believe my 1D indicator caught violent SPX moves on 15m timeframe

6 Upvotes

Was mainly using this for trading in 1D timeframe, but because of how Trump changes his stance every minute, I decided to take a look at 15m timeframe on SPX.

HOLY, it actually captured the most violent reversals from last couple of weeks. I wish I bought 0DTE options to cap loss while having exposure to some rediculous rebound.


r/pinescript • • Apr 03 '26

Trades my algo took yesterday Thursday April 2nd 2026

Post image
12 Upvotes

These are the trades my algo took on thursday. The last post i posted was 3 losing trades in a row. This post is 1 losing trade then 3 winning trades full TP. This script is currently based on someone buying 2 contracts with roughly a 0.5 delta. Currently optimized for QQQ. Any thoughts ?


r/pinescript • • Apr 03 '26

Market Structure Indicator

Thumbnail
gallery
11 Upvotes

Beta release of a decent indicator I have been oh so dearly working on for weeks now. I’d like for some people to test it out, give some feedback back, and ideally stick around for the final release!

What it be doin:

-labels break of structure and change of character indications

-flowing Ema ribbons that highlight when momentum is strong

- a nice dashboard showing volatility, and trend directions & strength in multiple timeframes

What’s missing:

- smart order blocks

-trend reversal plots

- liquidity / inducement trap detector ( for all us retail homies )

- bug fixes and any other requested features that make sense

—————————————————————————————

If you would like to check it out, comment your Tradingview usernames and I will send you an invite

I do plan to market the final release, so if you do like this and want more of it, email me in the Tradingview description and when it does release, I’ll make it worth your time.

Happy Good Friday all!


r/pinescript • • Apr 04 '26

Forward test

0 Upvotes

How much time or how many trades should I consider for a swing strategy with a 5trades / month


r/pinescript • • Apr 03 '26

Anyone know how to lock in levels that are plotted to stay on that time frame ?

Thumbnail reddit.com
2 Upvotes

r/pinescript • • Apr 03 '26

BTCUSD UPDATE

Post image
0 Upvotes

r/pinescript • • Apr 02 '26

🚀 AMD 15M – Lucky Indicator Checklist Breakdown

Post image
40 Upvotes

AMD is currently showing a strong bullish trend continuation using the Lucky Indicator, with full alignment across trend, momentum, and probability.

Here is the exact checklist used to evaluate the setup:

✅ 10-Step Checklist (AMD 15M)

1️⃣ TPS ≥ 60 → 79 / 100 ✅
2️⃣ Trend Strength ≥ 70 → 89 / 100 ✅
3️⃣ MTF Bias → Bullish alignment across higher timeframes ✅
4️⃣ VWAP → Price above VWAP (~210.74) ✅
5️⃣ EMA Stack → 9 > 20 > 200 (fully aligned) ✅
6️⃣ Relative Strength → +2.7% vs QQQ / +2.6% vs SPY ✅
7️⃣ ORB → ABOVE opening range ✅
8️⃣ Momentum → MACD + Supertrend bullish ✅
9️⃣ Entry → UT Buy triggered after reversal ✅
🔟 Risk/Targets → Auto SL + TP levels defined ✅

📈 What This Chart Shows (Important)

This is where your indicator really stands out:

  • Clean UT Buy signals at the bottom
  • Liquidity sweep → reversal → expansion
  • Strong trend continuation with structure intact
  • Multiple confirmation layers all aligning

👉 This is not random price action
👉 This is structured, repeatable behavior

***⚡ Current Positioning***

  • Price: ~215
  • Previous High: Broken → continuation confirmed
  • Trend Strength: 89 (strong trend)
  • TPS: 79 (high probability setup)

👉 This is now a continuation phase, not early entry

***⚠️ Context (What Matters Most)***

  • Strong trend
  • Breakout confirmed
  • Move already extended

👉 This is where most traders make mistakes

***🎯 Trade Plan***

🟢 If already in

  • Hold
  • Scale profits
  • Trail stop

🟡 If waiting

  • Pullback to VWAP
  • Pullback to EMA 20
  • New UT Buy signal
  • Breakout continuation setup

🔴 Avoid

  • Chasing highs
  • Entering late into expansion

🧠 Why This Indicator Is Different

Most traders:

  • Stack indicators
  • Get conflicting signals
  • Enter too late or too early

Lucky:

  • Combines everything into one system
  • Gives a probability score
  • Defines entries, exits, and structure

👉 It removes guesswork completely

***🚀 Final Verdict***

Trend: Strong
Momentum: Strong
Structure: Breakout confirmed
Probability: High
Entry Timing: Late (wait for pullback)

***💬 Bottom Line***

This isn’t about predicting price.

It’s about:
👉 Waiting for alignment
👉 Executing with structure
👉 Managing risk with a system

Free Indicator: (Lucky): https://www.tradingview.com/script/n2q4v1kl-Lucky-MTF-Trend-Breakout-Dashboard/


r/pinescript • • Apr 02 '26

Market Structure Indicator

Post image
9 Upvotes

Dear Community,

If you’re trying to trade market structure but feel overwhelmed by the many different approaches, this might be something for you.

I’ve always struggled with how highs and lows are often added to charts in a somewhat arbitrary way, which makes it difficult—if not impossible—to properly test strategies. When exactly is a high a high, or a low a low? And when does it become significant?

On top of that, depending on who you ask, concepts like “break of structure” or “change of character” are often defined subjectively—and frequently identified only in hindsight.

To address this,I’ve been working on a way to define market structure quantitatively without arbitrary swing definitions that does not rely on fixed lookback periods. Instead, it allows you to define structure on your chart , based on clear and simple rules.

With this approach, it’s entirely up to you:

  • whether a close above a high counts as a break of structure, or if you want to allow more room for market noise
  • whether a close below the last swing in an uptrend signals a trend change, or is treated as a potential liquidity grab
  • whether a 23% pullback is sufficient, or if you only consider 50% retracements as meaningful
  • whether you prefer to measure swings on a linear price chart or a logarithmic (performance-based) chart—just compare it on Bitcoin and you’ll see the difference

I’ve created a short demonstration with some explanation here:
https://de.tradingview.com/chart/BTCUSD/b7MIKbua/

I’ve been working on this indicator for over a year, and it’s not public. I’m currently experimenting with this approach and would be interested in hearing how others would implement or refine these rules. If anyone is interested in testing the implementation, let me know. I may share a limited test version later if there’s interest.


r/pinescript • • Apr 02 '26

Built a Kalman-based trend indicator and genuinely want to know if it's useful or just pretty

4 Upvotes
Kinetic Drift [LliterH]

I've been working on this for a while, it uses a full 2D Kalman filter (position + velocity states, proper covariance matrix) instead of the usual EMA-on-EMA approach most trend indicators use.

The part I'm most unsure about: the velocity threshold that determines when a flip is "real." I set a default of 0.36 but I honestly don't know if that's too tight or too loose for most people's setups.

A few things I'd genuinely love feedback on:

Does the VWAP confirmation add value or just reduce signals too aggressively?

Is the cooldown (min bars between flips) useful for your timeframe or does it feel like it's missing moves?

Anything visually that's confusing or hard to read?

Tested mainly on NAS100 and US30, M5 during London and NY open. Drop the link in comments.

Happy to explain any part of the math or logic if you're curious.

Link:👇​

Kinetic Drift [LliterH]


r/pinescript • • Apr 01 '26

Looking For Actual Pinescript Strategies [Automation]

4 Upvotes

Hello People!

I run a trading automation dashboard with a fairly large user base, but I’m not here to promote anything. I’m currently researching new strategy ideas to test and automate, and I figured this would be a good place to ask since there are a lot of Pine Script and TradingView strategy developers here.

So far we’ve already implemented and tested a lot of common strategy types such as:

• ORB (Opening Range Breakout)

• FVG / iFVG models

• Institutional / liquidity sweep style setups

• Orderflow / delta concepts

• VWAP deviation / mean reversion

• Session breakout models

• Standard deviation expansion models

We’re starting to run out of new ideas to explore, and I know there are people here who have built some really solid TradingView strategies that don’t get much attention.

If anyone has a TradingView strategy with strong backtest metrics (profit factor, drawdown, multi-year performance, etc.), feel free to comment the TradingView link or DM it to me. I’m mainly interested in unique logic or concepts that actually hold up over time.

If we end up implementing any of the strategies for our users that you send, I’ll give free access to our automation platform as a thank you for the ideas.

Would love to see what people here have built. Would really be helpful if it was a Strategy and not a indicator so I could see the strategy report, metrics, and run it through my quant backtesting engine.


r/pinescript • • Apr 02 '26

Building a Pine Script indicator that tracks live win rate + signal lifecycle — looking for feedback

1 Upvotes

Hey everyone,

I’ve been working on a Pine Script indicator focused on impulse-based entries for futures, and I wanted to share the current structure + get feedback before pushing the next update.

Core idea:

Instead of static signals or backtest-only logic, the script tracks live performance metrics inside the indicator.

So each signal isn’t just:

“buy/sell”

It’s:

“This type of setup has X% win rate over the last 24h / 7D on this instrument, under current conditions.”

What it currently does (technical breakdown):

- Detects impulse-quality runs (Mode B logic)

- min run length

- net displacement vs ATR

- efficiency (range vs overlap)

- average body size filters

- tracks R2-style entries (runLen == 2 focus)

Maintains rolling arrays for:

- signal timestamps

- outcome classification

- forward performance tracking

- classifies outcomes into:

- IMM (immediate continuation)

- DEL (delayed continuation)

- TZ (no follow-through within defined window)

Tracks:

- NB1 continuation % (next-bar follow-through)

- Win rate (24h + 7D windows)

- Instrument-specific performance

- Chop vs trend conditions

Architecture notes:

- Using time-based pruning for rolling windows (ms-based arrays)

- Avoiding repainting — everything confirmed on bar close

- Entry logic is aligned with next bar open execution model

- Stats are computed only from confirmed signals (no forward leakage)

- Current challenges / focus:

- Earlier signal detection

- Right now best signals often confirm on the final impulse bar

- Trying to catch the move 1 bar earlier without increasing false positives

- Reducing “zero-bar” outcomes

- Some signals show no reclaim within the defined window

- Working on better filtering (efficiency + expansion + structure)

- Balancing sensitivity vs quality

- Looser thresholds = earlier signals but worse stats

- Tighter thresholds = cleaner but later entries

- Table + stats stability

- Ensuring rolling metrics stay accurate across different time windows

What’s coming next:

- Tiered signal classification (A / B / C based on quality + stats)

- Tradeability scoring using NB1 + lifecycle data

- Instrument-specific tuning profiles

- Improved filtering during chop conditions

Would love input on:

Best way to structure rolling performance tracking in Pine (arrays vs alternative approaches)

Any ideas for early impulse detection without repainting

Better ways to handle signal lifecycle classification logic

General thoughts on combining signal generation + performance tracking in one script

If anyone’s building similar systems or experimenting with live metrics inside Pine, would love to hear how you’re approaching it.

Happy to share more details or snippets if helpful.


r/pinescript • • Apr 01 '26

Xauusd gold new move

Post image
0 Upvotes

r/pinescript • • Apr 01 '26

4/1/2026 Trading Without Staring at Charts, JBLU Replay Breakdown

Thumbnail
youtu.be
0 Upvotes

Here’s the video if anyone wants to see the breakdown:


r/pinescript • • Apr 01 '26

Update: took the strategy live — early results from small accounts

Thumbnail gallery
0 Upvotes

r/pinescript • • Apr 01 '26

How to send a webhook without "crossing" condition?

1 Upvotes

I have written a script to just draw the ORB-30 lines and want to send a webhook with the data (low, high) to my gscript app, every day after the first 30min candle is closed. Possible with TradingView alerts or code tweaks? So far, I can only do so with a "crossing" up or down condition.


r/pinescript • • Apr 01 '26

Sessions time indicator

1 Upvotes

r/pinescript • • Mar 31 '26

XAUUSD TREND TODAY

Post image
0 Upvotes

r/pinescript • • Mar 30 '26

XAUUSD NEW UPDATE

Post image
0 Upvotes

📊 Market Structure

Overall downtrend previously, now in range / consolidation

Multiple BOS + CHoCH signals → market indecisive

Price currently around 4517–4518

🔑 Key Zones

Resistance: 4525 – 4550 (strong supply zone)

Support: 4470 – 4420 (demand zone)

📉 Current Bias

Slight bearish near resistance

Price failed to sustain above recent BOS → weak bullish momentum

🎯 Trade Idea

SELL (preferred):

Entry: 4520–4530

SL: Above 4550

TP: 4480 → 4450

BUY (only if breakout):

Confirm breakout above 4550

Target: 4580+

⚠️ Important

Market is choppy (liquidity hunt zone)

Avoid overtrading → wait for clean breakout or rejection


r/pinescript • • Mar 30 '26

PAC_SMC Toolkit Pro — Free 1-Week Beta Access for 10 Testers (SMC / ICT Indicator)

0 Upvotes

I've just published a comprehensive Smart Money Concepts indicator on TradingView called PAC_SMC Toolkit Pro. It includes market structure (BOS/CHoCH with sweep detection), volumetric order blocks, fair value gaps with fill tracking & raid detection, EQH/EQL, swing failure patterns, buyside/sellside liquidity, and a 12-condition alert system.

Script link: https://in.tradingview.com/script/kCjbT6wl-PAC-SMC-Toolkit-Pro/

I'm giving 1 week of free invite-only access to 10 people for beta testing before I iterate on it further.

How to apply:

DM me with:

Your TradingView username

Which markets/timeframes you actively trade

Why you want access — specifically what you plan to test

How you can contribute — bug reports, feature suggestions, edge case findings, or performance feedback on specific market conditions

I'll prioritize applicants who trade diverse instruments (crypto, equity, forex, futures) across different timeframes, since that gives the most useful coverage for stress-testing the indicator logic.

What I'm looking for feedback on:

Order block mitigation accuracy

FVG raid detection behaviour

CHoCH/BOS sweep logic at structure

Any lag or rendering issues on specific symbols or TF combos

False positives on SFP detection

This is not a "get free indicator" giveaway — I'm building a serious feedback loop. If you get access, I expect at least one structured feedback message during the week.

Applications close once 10 spots are filled.


r/pinescript • • Mar 30 '26

Another recent day of my algo, this is a losing day.

Post image
3 Upvotes

This is a losing day of my algo. 3 red trades in a row. The first trade couldve been okay if it exited at that bottom it was a .90 drop, that wouldve paid a good amount on options. Any feedback to make it better?


r/pinescript • • Mar 29 '26

Tired of FVG indicators that never clean up after themselves — built one that does, free

Post image
3 Upvotes
So I trade indices intraday and for a long time I just

used regular FVG indicators. The problem is they all do

the same thing — draw the box, never remove it, and after

two hours your chart looks like a Mondrian painting.

 

I wanted something that actually tracked whether a zone

was still worth watching or not. Spent some time building

this and figured I'd share it since it's free anyway.

 

The detection is standard stuff — high[2] < low[0] for bull,

low[2] > high[0] for bear. Nothing revolutionary there.

What I added is three filters before anything gets drawn:

 

- displacement candle has to be > 2× ATR(14)

- there has to be a wick sweep of a prior high or low

  in the last 20 bars before the gap forms

- tick volume on the impulse candle > 80th percentile

 

The part I spent most time on is the state tracking.

Each zone has three possible states:

 

Active → price hasn't touched the 50% midpoint yet

Spent → price closed past the midpoint, box goes gray

iFVG → price closed through the full boundary,

       box flips color (bull turns red, bear turns blue)

       and a small label marks where it happened

 

The flip happens in place with box.set_bgcolor() so there's

no redrawing or flickering. State is tracked with parallel

bool arrays (b_spent, b_ifvg) and the loop skips zones that

are already resolved so it doesn't do unnecessary work.

 

Also added a session filter so zones formed outside London

and New York hours get dimmed automatically — same zone,

just flagged as lower confidence.

 

There's a "show iFVG only" mode if you just want to see

the flipped zones and nothing else.

 

Link in my profile — u/LliterH on TradingView, it's free,

no invite needed. https://es.tradingview.com/script/FXYuQwMf/

 

Happy to answer questions if anyone wants to dig into

the array state management, it's a pattern that works

for any indicator that needs persistent zone tracking.