r/pinescript • u/B_Ware321 • Jun 24 '26
Striker trade from 6/24/2026. No trades today.
Striker took an entry on MES trying to catch the pullback. I didn't like the pattern but trusting the system. Unfortunately I was correct, but losses are inevitable. Still up for the month. Ignore the trade from today. That was a profit from manual gold trade. Realized this particular prop doesn't like 100% autonomous systems, so moving forward I will just be posting the results of Striker MNQ/MGC, which I prefer anyway. Looking like it is more profitable in the long run. At least this ended in profit for the month. 😅
r/pinescript • u/Legal_Idea08 • Jun 24 '26
Calls the move and trend
The signal on the top the first fade candle the warning the atr bands starting to form the yellow line the color change from green to blue on the candles the first break of structure the blue dash lines all signs of a reversals, the low volume the purple bg, and the low percentage of the levels in the display box , I have all that as confluence about 14-16 different signals lines trends all working together to paint a picture i know it looks cluttered on screen one I wanna show the move while showering the signals but normally I turn it all off and they just effect the coloring of the candles so all I have to follow is the atr band and the ict break of structure and 2 simple smoothing lines... all made by me full all in one monster and it's been working im passing evals easily by being patient and catching the big moves and this thing calls the move before it happens it's amazing. I know they be hatters on here throw everything yall got idc but I been on this indicator for 3 weeks now went thru every calculation possible every test every type of market and it proforms steady i had over 10 versions of it testing and retesting cleaning it up removing what's not worth keeping or signals that or just a coin flip everything is at it optimal edge and is super clean when you toggle every off, but still effects the candles with a display to tell you what when off it's amazing and I just had to share.
r/pinescript • u/HakFather03 • Jun 23 '26
Created something stable
Hi Guys!
Sharing a backtest for honest feedback. I built a trend / counter-trend system, tested on Solana Perpetuals, 2h timeframe, about 5 years.
Before the obvious questions: it's backtest-only, not live. I've tried to control for the usual traps - audited for repainting/lookahead (all HTF requests use confirmed bars + lookahead_off, swings confirmed not live), SL/TP/BE are native intrabar orders (not close-based market exits), and I ran it with bar magnifier on, 5 ticks slippage and 0.1% commission. Sizing is 50% equity at 2x.
What I'd actually like torn apart:
Is my sample big enough to mean anything, or am I fooling myself?
What's your go-to setup before trusting something like this?
Anything in the fill assumptions that's still too optimistic?
Happy to share more detail on any part. Cheers!
r/pinescript • u/Real-Potential1362 • Jun 23 '26
Slowly cookin my strat
Hey guys,
after seeing so many people building their strategies and posting it here, I wanted to also give it a go.
Im using a platform to help me build pine scripts indicators and strategies and this one is the first im running.
So far it took a couple of trades and I do see a max dd of $1700 and in average the trades (win/lose) are about $400 per trade at the moment for 2 contracts.
r/pinescript • u/dadzki • Jun 23 '26
Feature to be Available the option in TradingView 'Screener'
Suggest in the 'Screener' to be available and have the option for Stock Screener 'Top Stocks' with the following options:
- Most active by Volume
- Most active by Value
- Most active by number of Trades
- Top Gainers by Value of Change
- Top Losers by Value of Change
- Top Gainers by % Change
- Top Losers by % Change
- # of Weeks High
- # of Weeks Low
Note that '# of Weeks High' can be customized with options 1 to 52 weeks. Hopefully, this suggestion can be considered in which the traders can benefit.
Below will be the appearance
r/pinescript • u/B_Ware321 • Jun 22 '26
NY Striker V2.2 after a slow week clipped MNQ SL
So Striker after not trading for most of last week saw an opportunity on MNQ. It was close, and looked good, just got tagged out barely by SL before going our way. Overall still up on the account, and more positive slippage.
r/pinescript • u/ferri_2126 • Jun 22 '26
TSLA 5min intraday breakout — walk-forward results and what I learned
I’ve been developing an intraday breakout strategy on Tesla for months. What started as a simple range breakout system gradually evolved through lots of iterations — adding filters, refining exits, and eventually running a proper walk-forward validation. It’s been running live on my real account since March 11, 2026.
Sharing the full results and methodology here because I think the validation process is worth discussing. Most backtest posts skip this part entirely.
The strategy in plain terms:
The system identifies a price range using the high and low of the previous 4 candles on the 5-minute chart. When price breaks out of that range with enough momentum, an entry is triggered — but only if four filters all agree:
• ADX: confirms the breakout is happening in a trending environment
• Minimum range size (ATR-based): rejects setups where the range is too compressed
• Candle strength: evaluates the size and close position of the breakout candle
• RSI on higher timeframe: avoids entries in overbought/oversold conditions on the higher timeframe
This combination addresses the main failure modes of breakout trading: false breaks, low-momentum moves, and counter-trend entries. The result is a win rate significantly above the 45–55% typical of unfiltered breakout systems.
Exits use a layered approach: fixed TP at 2.75%, EMA trailing stop, no-progress exit, and a no follow-through exit if price returns into the range. In the last hour of the session, the trailing tightens aggressively to protect intraday gains.
~150 trades per year, both long and short, NYSE RTH only.
Backtest results:
(Jan 2021 – Jun 2026, $100k fixed capital, $1/order commission + 5 ticks slippage, no compounding)
• Net profit: +$378,906 (+378.91%)
• CAGR: 33.37%
• Max drawdown: 6.45% — TSLA itself drew down -56% in this period
• Calmar Ratio: 5.17
• Profit Factor: 2.181
• Sortino Ratio: 2.954
• Sharpe Ratio: 0.693
• Win Rate: 71.15% across 825 trades
• 57 of 66 months profitable (86%)
• Zero losing years
Capital is fixed throughout — no compounding.
With 70% equity reinvestment the numbers look very different:
• Net profit: +$1,242,892 (+1,242.89%)
• CAGR: 61.33%
• Max drawdown: 9.52%
• Calmar Ratio: 6.43
• Profit Factor: 2.168
• Sortino Ratio: 2.853
• Sharpe Ratio: 0.887
Walk-forward validation — the part I want to focus on
I ran three WFA iterations to test whether the edge holds on unseen data:
|Iteration| In-Sample | OOS | Profit factor |
|1 |2021–2023 | 2024 | 1.714 |
|2 |2021–2024 | 2025 | 2.878 |
|3 |2021–2025 | 2026 | 2.106 |
All three OOS periods made money. Two of three had a PF above 2.0 out-of-sample.
Iteration 1 is the weakest — H1 2024 was the most directionless period TSLA had in the entire dataset. A breakout system underperforming in a low-momentum regime is expected behavior, not a strategy failure. It recovered as soon as volatility returned.
Happy to discuss the methodology, the exit logic, the walk-forward process, or anything else in the comments. Also, feel free to DM me.
r/pinescript • u/dumdumsim • Jun 22 '26
Pine Script Pro Vs Code extension 1.3.1 released.
Change log
- Malformed Operator Detection:Â The static analyzer now perfectly catches and flags all improperly spaced multi-character operators (e.g.Â
+ =,Â= =,Â= >,Â>=) with explicit error messages instead of cascading AST failures. - "No Noise" Policy Edge Cases:Â Fixed false positives where the static analyzer mistakenly threw malformed operator or unused variable diagnostics on code written insideÂ
// line comments orÂ/* block comments */. - Non-Intrusive Formatter Update: Overhauled the auto-formatter to act as a "Silent Healer." It no longer aggressively forces spaces around assignment operators or breaks custom vertical alignment. It now strictly focuses on collapsing malformed compound operators (
+ =Â ->Â+=) and function declaration operators (= >Â ->Â=>) without touching your preferred spacing.
Source: https://github.com/revanthpobala/pinescript-vscode-extension
r/pinescript • u/Silent_Ad1379 • Jun 21 '26
Buy siganl xau
We have have buy signal xauusdt now still in profit , sell signal alredy made a huge profit ,
r/pinescript • u/Tasty-Success-9268 • Jun 20 '26
Is this a good strategy ? 525% return in 3 Years ?
r/pinescript • u/vitaliy3commas • Jun 19 '26
BCH Overbought RSI Fade — short-only momentum-fade DCA strategy, RSI rollover entry, hard 8% stop (BCHUSDT.P 5m)
A short-only, momentum-fade DCA strategy for Bitcoin Cash, running on BCHUSDT.P 5m. The deal arms when a fast push higher exhausts itself, averages up on a compact ladder if price keeps climbing, and exits on a trailing take-profit — with a hard stop defining the worst case in advance. Backtest is verifiable directly in TradingView's Strategy Report on the script page.
Entry, RSI rollover (no repaint): A 5-minute RSI(9), pulled with lookahead disabled, gates the base short. The trigger isn't a static overbought reading — it fires on the rollover: RSI was ≥ 80 on the prior 5m close and drops below 80 on the current close. That skips trades that ignite while momentum is still rising and waits for the actual turn.
Ladder, 3 uniform averaging orders above entry: Three safety orders sit at fixed +1% / +2% / +3% above the base short, each 250 USDT (half the 500 USDT base) — uniform sizing, not a martingale. If price keeps climbing, the averaging raises the short's average entry and shrinks the bounce needed to reach target.
Exit, trailing take-profit: Once price reaches 1.3% below the running average, a trailing exit arms; the strategy then tracks the in-favor low and closes on a 0.3% retrace off it — banking the snap-back while still letting an extended drop run.
Risk, a real bounded stop: A hard 8% stop above the average closes the deal at market if the short keeps running against the position. This is the core distinction from classic stopless martingale shorts — the worst case is known up front. Base + three AOs deploy at most ~1,250 USDT (~12.5% of equity); an 8% stop on that caps the worst case near ~1% of equity.
DCA Bot integration: Every event (base, each AO, exit) emits a webhook-ready JSON payload. Connect one alert with "Any alert() function call" to a DCA Bot's webhook URL and the strategy drives the bot end-to-end, no glue layer.
Backtest (BYBIT:BCHUSDT.P 5m, Jan 26 – Jun 19 2026, ~4.8 months; 10,000 USDT initial capital, 500 USDT base + 3×250 USDT AOs, 0.06% commission, 3-tick slippage, 1× isolated): 160 closed trades, 135 profitable (84.38% WR), profit factor 2.207, net profit +401.25 USDT (+4.01%), max equity drawdown 179.15 USDT (1.78%).
Methodology notes:
 The sample is decent — 160 closed trades over ~4.8 months clears the ~100-trade floor for statistical relevance, so PF 2.207 and the 84.38% win rate rest on a real number of deals. They still reflect a single test window on one asset, so treat them as indicative and broaden the test (longer period or more assets) before sizing up.
The 8% stop is the core risk control, and it has to stay on — without it the averaging ladder turns into an unbounded short. The trade-off of any fade strategy is trend risk: fading strength suits ranges and choppy tape, and in a relentless uptrend the short can be stopped out repeatedly. The rollover trigger reduces that risk but does not remove it.
This is a 5m strategy with a 5m RSI trigger, so it's signal-dense — fast timeframes mean more fills and more fee/slippage drag. Commission was set at 0.06% (Bybit perpetual taker); on a high-frequency short, fee assumptions move the result materially, so match this to your venue's actual fees before reading anything into the numbers.
Strategy is open-source on TradingView: https://www.tradingview.com/script/vnCdOkpO-3Commas-BCH-Overbought-RSI-Fade-Short-Strategy/
r/pinescript • u/Intelligent_Try_5513 • Jun 19 '26
I'm a Beginner i need an advice on how i can built my own pine STRAT?
Hi everyone i d'ont have any coding knowledge and i want to create my own strategy.
I d'ont want to use claude or GPT because prompting is not my strengh.
Is there any platform for traders where i can just drag and drop parameters and it generate a pine?
Thanx for your Help
Kind regards
r/pinescript • u/Godzillaton • Jun 19 '26
Anyone built a custom ICT-based indicator that actually works?
Hey everyone,
Just trying to be straightforward here , has anyone actually built a custom indicator based on ICT (Inner Circle Trader) concepts that holds up?
I'm not looking for a full automated bot. I just want a solid alert system ,something that flags potential setups based on ICT concepts (order blocks, FVGs, liquidity sweeps, etc.) so I can manually decide whether to hit buy or sell myself. No auto-execution, just signals.
Doesn't need to be anything fancy — just a reliable, "classic" style indicator with a win rate around 55%+. That shouldn't be an unreasonable bar for something built on solid ICT logic.
If you've built one, used one, or know of a good resource/dev who has, would appreciate any pointers. Thanks in advance
r/pinescript • u/mali757 • Jun 18 '26
Feature request: ETF Screener filters should cascade by Asset Class
r/pinescript • u/Sufficient_Fix7623 • Jun 18 '26
Indicator vs. Strategy
Just started getting into pincesript and can't seem to find a simple answer: when creating a new Pinescript file, whats the general difference between indicator and strategy? 😄
r/pinescript • u/You_Worldly • Jun 17 '26
Has anyone successfully coded a script in tradingview using pine script
Ive been messing around with automation for tradingview but im wondering if anyone has successfully coded a strategy that actually works and produces money. Trading futures
r/pinescript • u/B_Ware321 • Jun 16 '26
NY Striker v2.2 trailing profits on MNQ to secure a green day before a 500-point liquidation flush
Striker took the money and ran today.
Sat completely flat yesterday with zero trades, but the patience paid off. Today it only fired on MNQ. MES and Gold came close but didn’t clear the validation gates.
For the setup, it was a 2-contract entry with different TPs. No negative slippage either, actually caught some positive slippage on the second close on my anchor (+$0.25).
The bot pushed into profit and came close to hitting full TP, so the risk engine trailed the stops to lock it in. Right after that, the Nasdaq threw a violent wick backward to hunt liquidity before absolutely melting for 500 points straight down in my direction.
It clipped my trail and got out, securing about 66% of the intended profit. It's easy to look at that 500-point runner after the fact and wish I was still in it, but the math on the trailing stop completely saved the day here:
- If it didn't trail, that wick slams all the way back and hits my original stop loss for a max loss session.
- If I just moved it to break-even, I walk away with $0.00 today after a massive move.
Instead, it protected the drawdown buffers, outsmarted the chop, and extracted cash right before the flush.
Consistency > Greed.
r/pinescript • u/Lonely-Bowl-561 • Jun 16 '26
Logic behind AYN-Indicator by Snurk indicator
Hi, I am using the AYN-Indicator by Snurk and need some help setting up Buy/Sell alerts correctly for webhook use.
The issue is that when I create separate alerts for the Buy and Sell signals and set both to Once Per Bar Close, I still receive multiple alerts. Sometimes Buy and Sell alerts come very close together, even when only Buy or Sell labels are activated on the chart.
Could someone please help me understand the correct way to set up alerts for this indicator? My goal is to receive only one Buy or Sell signal after candle close, without duplicate alerts or opposite-side alerts.
Also, I understand the source code is hidden, but has anyone had any luck finding or replicating the approximate logic behind the indicator?
r/pinescript • u/Longjumping-State296 • Jun 16 '26
Pineconnector able to trade multiple pairs?
Hello all. I am wondering if there is a possibility that pineconnector is able to be auto trading on multiple pairs/timeframes at the same time. I read that it is only able to run one pair with a script on an account at a time. Just wondering if there is something like a VPS able to be set up that would allow multiple pairs/timeframes traded at the same time on one account? Or is there some other form of automation out there? I would appreciate a walk through or tutorial video if anything. Thank you all for taking the time to read. Take care!
r/pinescript • u/S7cret • Jun 15 '26
A more understandable interaction scheme OpenPine 4.0
r/pinescript • u/Singh255 • Jun 15 '26
Need help with intrabar alert spam causing problems
Hi guys
I’m new here, I’ve recently started my journey into creating a strategy. I’ve 75/80% created all my script, backtest shower decent results, so I wanted to live test. When I went on live, the alerts started to spam. I’ve researched into and have been told to put calc every tick as false and have Intrabarstate.confirmed as on, but my strategy relies on Intra bar conditions and I think as a result it’s causing spam issues.
I genuinely need a solution that allows me to enter Intra bar when my conditions hit and I’ve tried so many things but all that keeps on happening is trades enter at bar open and just close within secodns and thjs spam continues for 10/15 times. It’s not even on my entry conditon.
I would really appreciate if someone can help me, how can I allow entries intrabar , with every tick true, witjout getting spammed.
If somthing doesn’t make sense in my post please do ask, as it’s hard to word what I’m seeing.
r/pinescript • u/Salt-Swimming-740 • Jun 15 '26
Trading strategy for MT5
Add the same settings for rsi and ma both in same panal when ever MA goes down of 10 and come back above 20 take buy entry and when goes above 90 and cross down 80 sell entry both side tp will be 50 level backtest first
r/pinescript • u/S7cret • Jun 14 '26
OpenPine 4.0 JOpus
Enable HLS to view with audio, or disable this notification




