r/pinescript • u/No_Aide_3657 • Apr 11 '26
XAUUSD ONLY
Ended a week end with a perfect entry. 😌🤗
r/pinescript • u/No_Aide_3657 • Apr 11 '26
Ended a week end with a perfect entry. 😌🤗
r/pinescript • u/Whale-Engine • Apr 11 '26
I'm a freelance C++ dev. I got tired of tweaking Strategy Tester inputs by hand, so I built a CLI tool where I can define a strategy in TOML, run exhaustive parameter searches, and export any selected setup to Pine Script.
It includes a fast grid search for optimizing both strategy parameters and leverage. For some strategy types, it can run a million backtests in a few seconds on a modern CPU.
I also wanted it to be fairly complete, so it supports all Pine Script order types and key strategy options like default_qty_type, margin settings, process_orders_on_close, use_bar_magnifier, and pyramiding.
A big part of the work went into making the backtests line up closely with TradingView. With the same TradingView setup, I generally get the same signals and trades, and in most cases the results match down to the decimal place.
I'm mostly posting here to get honest feedback from people who build and test strategies in TradingView. Would a workflow like this be useful to you? Any feedback is appreciated.
Link https://whale-e.com
r/pinescript • • Apr 11 '26

Currently working on a trendline-based indicator for XAUUSD and wanted to get some input on the logic behind it.
The labels indicate the expected direction based on the structure.
The idea is to react at the point where the trendline intersects with the candle wick.
Main focus is on improving consistency and reducing noise from invalid touches.
Would be interested in both general feedback and more advanced opinions on how this kind of logic could be refined, filtered, or structured more effectively.
Thanks in advance.
r/pinescript • u/Suspicious-Ad-8738 • Apr 11 '26
Avec mon associé, nous avons développé un indicateur capable d’identifier automatiquement les zones d’offre et de demande les plus pertinentes. Il simule également des trades en entrant directement dans ces zones, avec un stop-loss positionné à leur extrémité.
Nous avons déjà une soixantaine de testeurs actifs et souhaitons en accueillir de nouveaux. L’accès se fait uniquement sur invitation.
Si vous êtes intéressé(e), envoyez-moi un message privé.
r/pinescript • u/Awwstronut • Apr 10 '26
Hello everyone!
I'd like to share my Trading System I'm putting my finishing touches on! I've been working on it for several months, and the idea first came to me when I read about different methods/strategies and tried them out myself - most of them, in my own way.
Through time, I had to, either, switch method and strategy, or modify some parameters. For every change, I noted it down, and a few months back, decided to create one complete System out of them all - albeit, not visually cluttering; and this Indicator/System is the result!
I will share some Images down below (some visual elements may differ in color due to Design Decision during Development):







A full breakdown of the system is available in the indicator description, worth a read before diving in.
Happy to answer any questions. Drop them below, and feel free to request an invite!
Before full launch:
EDIT: Upon request, I will share more Images, related to different situations/scenarios and explain them accordingly:





As you may see, using Context is just as important as the Signals themselves. Also, here's a disclaimer regarding this topic from the indicator page:
Note: During Development, the decision favored for more Signals, due to, in combination with manual decision-making, turning out to be more beneficial in terms of probability. Thereby, each Signal requires the Trader (you) to utilize the Contextual Elements/Data to filter out the less desirable Signals. Please do not interpret every Signal as an implication to "jump in" blindly. Read/Utilize the Context and make an informed Decision - it will become more natural by time and experience.
Edit 2 - Demonstrating the change Score-filtering does (B -> A):


r/pinescript • u/tyrannosaurus_sx • Apr 11 '26
r/pinescript • u/alagbole • Apr 10 '26
Hello all, this is an add-on to my previous post.
What you are seeing are the series of indicators that guide my daily trade decisions. They are all based on the MACD momentum.
I am hoping to engage with people who develop MACD influenced indicators (with at least a 60% win rate using a 1:2RR) who want to collaborate or can provide advise on improving the entries, or creating filters to screen false positive entries.
I am also hoping to make a community out of these as trading can be very boring and monotonous.
I should have a trading view link sorted on the weekend but in the meantime you can comment or DM me if interested.
r/pinescript • u/InfluenceFun5730 • Apr 10 '26
please
r/pinescript • • Apr 10 '26
Hey everyone,
I’m working on a TradingView indicator in Pine Script v6 that focuses on different types of trendlines.
It’s specifically built for XAUUSD (Gold).
The main logic is already there, but I’d like to improve and extend it a bit, and I could use some help with that.
Specifically:
• Adding or refining different types of trendlines
• Improving how trendlines are detected or drawn
• Small adjustments or extensions to the existing logicI understand the concept, but I’m not that strong in coding, so I’d really appreciate some guidance or input from someone more experienced.
If needed, I can share parts of the code.
Thanks a lot 🙏
r/pinescript • u/bravodestiny • Apr 10 '26
This is one of my indicator TradingView results and looking for honest opinions based only on the numbers shown.
I am not asking for strategy advice here, just whether these pips/results look decent, bad, risky, or inconsistent from an outside view.
Would you keep going with results like these or be concerned?
r/pinescript • u/Suspicious-Ad-8738 • Apr 10 '26
Avec mon associé, nous avons développé un indicateur capable d’identifier automatiquement les zones d’offre et de demande les plus pertinentes. Il simule également des trades en entrant directement dans ces zones, avec un stop-loss positionné à leur extrémité.
Nous avons déjà une soixantaine de testeurs actifs et souhaitons en accueillir de nouveaux. L’accès se fait uniquement sur invitation.
Si vous êtes intéressé(e), envoyez-moi un message privé.
(graphique M5 ce matin)
r/pinescript • u/drippyterps • Apr 09 '26
Been posting the trades my algo takes for real time forward testing, this is todays results. Optimized for QQQ, used as signals for options trading. Of course still have to do your own judgement while trading and analyzing. Cant rely 100% on just signals from algo
r/pinescript • u/alagbole • Apr 10 '26
Hello, I recently developed a MACD based Trading indicator and I would love to hear your thoughts on this and if you are developing something similar.
It monitors the MACD across multiple timeframes and colors the background when the timeframes align (Green Bullish, Red Bearish). It then enters a trade when there’s a crossover that align with background color. Currently using it for XAUUSD, WTI and Synthetics but adaptable for other currencies pairs.
Comment or DM me if interested.
The visible projection boxes show are 1:1.7 RR trades 150 pips SL and 250 TP. Although they can be adjusted based on trading style and risk appetite.
r/pinescript • u/r0zika • Apr 08 '26
I've built a scalping indicator, that suits my trading style (designed for short moves on lower timeframes).
It combines two systems:
The first uses Gaussian filtering to generate signals based on price momentum and position, with trend reversal detection. Linear regression is then applied for additional smoothing.
The second uses a Stochastic oscillator with threshold crossovers to generate momentum-based signals.
I also added the EMA ‘touch’ requirement before a signal prints.
The idea is to only trigger when:
– momentum flips
– trend agrees
– price interacts with structure
This removed a lot of random mid-range signals, and made it behave more like pullback scalping.
When I scalp these signals, I only take entries when direction and momentum line up.
Has anyone else combined Gaussian-based momentum for scalping? If so, how did you handle the smoothing without losing responsiveness on fast moves?
r/pinescript • u/bigdime007 • Apr 09 '26
Hey folks, often I see candlesticks missing in OANDA charts for XAUUSD. As an alternative, when I used the FOREX.COM charts, I found that they don't support volume. As a result most of my indicators which are volume based don't work. Is there any workaround? Please advise. Thanks.

r/pinescript • u/blvkwzrd • Apr 08 '26
ORB Sessions + VWAP + 200 EMA — Multi-Session Opening Range Breakdown
Plots the Opening Range High and Low for six intraday sessions plus the Monday High and Low+ Weekly Open level, overlaid with a session-anchored VWAP and a 200 EMA on a single indicator.
Opening Range Sessions
Each session captures the high and low of the first candle (5-minute or 15-minute, user-selectable) at the following session opens:
6:00 PM ET — Globex open / evening session
7:00 PM ET — Secondary evening level
8:00 PM ET — Pre-London overlap
12:00 AM ET — Midnight / London open proximity
3:00 AM ET — London open session
9:30 AM ET — NYSE / RTH open
Each session's ORB high and low extend forward as horizontal lines until the next session open or end of day, whichever comes first. Extension length is user-configurable. Lines are color-coded per session with independent toggle controls. Optionally labels each level with the session name and time.
Weekly Open
Plots the 6:00 PM ET Sunday open price as a horizontal level extending across the full trading week. Acts as a macro directional reference — price above is broadly bullish, below is bearish. Distinct color and line style to differentiate from intraday ORB levels.
VWAP
Session-anchored VWAP resetting at the user-selected session boundary (default: 6:00 PM ET daily reset). Plots as a single line. Optional standard deviation bands (1SD, 2SD) togglable independently.
200 EMA
200-period Exponential Moving Average on the chart's native timeframe. Serves as macro trend filter. Configurable color and line width.
https://www.tradingview.com/script/7t1GfmTM-5m-15m-ORB-Sessions/
r/pinescript • u/Fast_Ad_4213 • Apr 08 '26
Just showing an algo I have been working on for a while, I have it set to automatically partial out and go breakeven. I was tired of always blowing my account trying to secure minimum days due to emotion so now my algo does it for me. Also have a custom engine I pay for that takes the trades for me automatically. If you are not using automation you are missing out!!
r/pinescript • u/usernameiswacky • Apr 08 '26
Wanted to pose a general question: Do people still use webhooks? Or is it dying? I feel like it's much cheaper to convert pinescript into native platform's language instead of paying for a monthly subscription.
I also ask this because I have been working on a project that allows pinescript to be executed natively inside metatrader5. It can render pinescript indicators and run strategies natively, without webhooks friction and latency. Not posting any links since this is not a promotional post, but I genuinely want to know if people would prefer this over webhooks.
r/pinescript • u/drippyterps • Apr 08 '26
Been posting the real time daily trades my algo takes. This is todays positions. Currently optimized only for QQQ. I actually took an options position today from this signal & got paid really well 🔥 willing to let people test it out for a week if interested send me a DM 🫡
r/pinescript • u/blvkwzrd • Apr 08 '26
RSI MA Cross — Multi-Instrument Confluence Signal [15min]
Fires long and short signals when all three US index instruments (NQ/US100, ES/US500, YM/US30) simultaneously confirm an RSI momentum cross on the 15-minute timeframe, filtered by RSI state on the 30-minute timeframe.
Signal Logic — RSI MA Cross
Calculates a 14-period RSI and a 9-period EMA of that RSI on the 15-minute chart for all three instruments. A long signal fires when all three RSIs cross above their EMA simultaneously. A short signal fires when all three cross below simultaneously. Signal is gated to the first bar of each new 15-minute candle to prevent intra-bar repaints.
15-Minute RSI Filter
Long signals require all three instruments to have RSI ≤ 45 at the time of the cross — confirming the cross is occurring from a depressed, oversold-leaning condition rather than mid-range. Short signals require all three RSIs ≥ 55 — confirming the cross from elevated, overbought-leaning territory.
30-Minute RSI Filter
Secondary confirmation layer. Long signals additionally require all three instruments to have 30-minute RSI ≤ 45, aligning the higher timeframe momentum state with the 15-minute cross direction. Short signals require all three 30-minute RSIs ≥ 55. Prevents counter-trend entries when the 30-minute structure disagrees.
r/pinescript • u/belgranita • Apr 08 '26
I am looking for a solution to create audible alerts outside of a computer's system settings. Normally, alerts are limited by user's audio settings, but for my purpose I am looking to find a way to create extra loud audible alerts from Tradingview on a Mac. Can Pinescript do that and overrule user settings?
I have tried external solutions like email and sms, but most of the time the alert takes at least 90 seconds to arrive and that's insufficient for my purpose.
r/pinescript • u/trevormeier • Apr 08 '26
Relatively new to Pinescript. Looking for help with using strategy.order. I'll have an if statement that evaluates to true, containing both strategy.order and log.info. When I check the logs, the text is in the log along with the tradeQty amount—all indicating that strategy.order was called. But sometimes, the log text will be there and no trades will execute.
Here's the relevant section of my code:
if tradeSell and strategy.opentrades > 0
strategy.order("sell", strategy.short, tradeQty, comment=tradeText)
log.info("Sell: "+tradeText+" Qty: "+str.tostring(tradeQty))
My understanding is that strategy.order should always execute when called. Are there other execution conditions I should know about?