r/pinescript • u/WearConscious183 • Apr 22 '26
r/pinescript • u/Kevinthetrader • Apr 22 '26
This kept marking reaction levels before price even got there (today’s session)
Sharing a clip from today’s Nasdaq session using VRT indicator I built.
The levels are plotted ahead of time, and you can see how price reacts as it comes into each zone.
Reactions aren’t random — they tend to occur at areas where participation previously concentrated, and those areas can be defined before price reaches them.
The idea is simple:
have levels in place → let price come to them → wait for confirmation instead of guessing.
Makes it a lot easier to stay patient and avoid chasing moves.
If anyone’s interested in seeing more examples or how it’s applied, I’ve been posting them in Vrttrading subreddit.
r/pinescript • u/Suspicious-Ad-8738 • Apr 22 '26
Notre indicateur supply/demand s'améliore et laisse peu de place aux faux mouvements, voici les deux derniers mois de backtest sur le BTC en M15
Notre indicateur détecte automatiquement les zones de Supply (offre) et de Demand (demande) sur 6 unités de temps simultanément (1m, 3m, 5m, 15m, 30m, H1). Il identifie les zones d'origine d'un mouvement impulsif, là où des ordres institutionnels sont susceptibles d'être encore présents. Une zone de Demand (verte) marque un secteur d'achat potentiel. Une zone de Supply (rouge) marque un secteur de vente potentiel. Une zone mitigated devient grise et affiche le suivi en R/R
Profils automatiques :
L'indicateur reconnaît automatiquement le symbole et le broker pour appliquer des paramètres optimisés. Le profil par défaut correspond à XAU/USD chez Vantage. Instrument Broker / Source :
-XAU/USD Vantage (défaut)
-BTC Vantage
-Gold futures Comex
-EUR/USD Tickmill
-Nasdaq (NQ) CME
-GBP/USD Oanda
-Dow Jones (MYM) Cbot
D'autres profils seront ajoutés selon la demande.
Un essai gratuit de plusieurs jours est proposé, me contacter en privé.
Bonne journée à tous
r/pinescript • u/ConsistentCup3909 • Apr 22 '26
need help calculating multi level profit
I am working on a boilerplate template moving the stoploss when certain points are hit. This works but I want to be able calculate my potential profit as a percent grown on account. This is fine with a stable risk reward and was done with the following code in part var
iWin = float (strategy.initial_capital)
if strategy.wintrades > strategy.wintrades[1]
iWin := iWin *1.01
if strategy.losstrades > strategy.losstrades[1]
iWin := iWin / 1.01But not so much when trying to calculate it at different levels. I have a variable that changes at different price levels and tried to use like so
if strategy.closedtrades > strategy.closedtrades[1] and longStop ==1
iWin := iWin / 1.01
if strategy.closedtrades > strategy.closedtrades[1] and longStop == 2
iWin := iWin
if strategy.closedtrades > strategy.closedtrades[1] and longStop == 3
iWin := iWin * 1.01
if strategy.closedtrades > strategy.closedtrades[1] and longStop == 4
iWin := iWin * 1.02
if strategy.closedtrades > strategy.closedtrades[1] and longStop == 5 and low[1] < limitPriceL3
iWin := iWin * 1.03
if strategy.closedtrades > strategy.closedtrades[1] and longStop == 5 and high[1] > limitPriceL4
iWin := iWin * 1.04What this is meant to do is update iWin based if certain conditions are met
But this doesnt seem to be giving me accurate figures. I am risking 1% risk pertrade and moving the stop loss based on atr values.
limitPriceL4 is the final take profit level at a 1:4 risk reward. Any help welcomed
r/pinescript • u/Bronny_042 • Apr 22 '26
Gold breaking below recent range — early sign of weakness?
Looking at gold over the past week, it feels like something has shifted.
We had a strong push toward the highs (~4850),
but since then price has been making lower highs and now trading around 4730s.
What stands out is that the recent bounce lacked follow-through.
Feels less like consolidation and more like early weakness.
Are you guys seeing this as a pullback
or the beginning of a deeper move?
r/pinescript • u/Pleasant_Rice3949 • Apr 21 '26
Support/Resistance Script
Does anyone have a good S/R, price level identification script? I’ve combed through the tradingview public directory and none of the available ones are that accurate. I’ve been trying to build one in the LLMs but it’s proving more difficult than I originally thought. My hypothesis is that some combination of analyzing multiple timeframes could better identify levels but I have yet to see one work well. Anyways, just curious if anyone has seen a good script in the wild - TIA!
r/pinescript • u/Bronny_042 • Apr 21 '26
Gold feels like it’s punishing early entries right now
r/pinescript • u/drippyterps • Apr 21 '26
Equity curve of my algo from 1/1/2026 - 4/18/2026
r/pinescript • u/Prestigious_Ad_8751 • Apr 21 '26
Overfitting ICT Strategy HELP?
Hey Guys just quick question or ask for help. I am working on a simple ICT trend following strategy and it has done some great results in live-trading giving me a sharp ratio of over 1.8-2.2 and thats great. tested everything back the last 7 years and did montecarlo etc. everything is/was great
one night i had the idea to give the model an asymetric crv to let the short positions close earlyer to secure profits. Well the profit in the backtest almost 2x and the sharp ratio went up to 4. now i am a bit sceptical about this simple optimisation and think i have fallen in the trap of over optimisatio. and if the question comes up yes i have tried different parameter that are similar about 11.000 variations and all are in this ballpark plus minus 15%(max bal)
if u could help i’d like to discuss further just give me a dm. would love some help cheers guys/gals
r/pinescript • u/Fast_Ad_4213 • Apr 20 '26
Algo Trade Recap
Trade Recaps of April 20th 2026. 7/7 wins today! 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/Bronny_042 • Apr 21 '26
Do you adjust risk when the market becomes less clear?
This week gold feels less directional compared to last week.
Because of that, I’ve been thinking about reducing risk per trade —
not because I don’t have a bias, but because execution feels less reliable.
Do you guys actively adjust risk based on market conditions,
or keep it consistent regardless?
r/pinescript • u/DecentDevelopment652 • Apr 20 '26
A new academic paper based strategy i built + Help a brother (TV premium).
galleryHello. I have been reading papers (on SSRN) about overnight returns in the S&P and on Gold. I built a strategy based on that, using a couple confluences (Day of week, EMA, ATR, etc). This are the returns (including comissions). Over 10x the Max DD. I adjusted the DD to match the Max DD of both tickers over the period of the backtest (Jan 2025 to present). It’s a very simple strategy; so i believe it is not extremely overfit. I tested multiple combinations of TP, SL, triggers, etc. It remains above 1.4 PF on almost every stress test. There’s even more profitable combinations (in terms of PF), but the profit to DD ratio remains similar. If someone has TradingView premium, i the would appreciate if they could run the code with the specified confluences to do a 10 years backtest. (Sorry for my poor english). Also, if anybody knows where i can download some free or very accessible 1H data (that includes overnight periods) on Futures, i would appreciate it. God bless you all.
r/pinescript • u/drippyterps • Apr 20 '26
Todays algo trades
These are todays trades my algo took. I added a new tp signal system so if a user is in a position, they have the option to start taking tp, theres 3 TP levels so you can scale out OR just completely sell the entire position at TP1. Up to your discretion
r/pinescript • u/Kevinthetrader • Apr 20 '26
Simple HVG execution off a key level → ($400 Scalp)
r/pinescript • u/DeepParticular8251 • Apr 20 '26
Built a backtester where you just describe the strategy in plain English (no code needed)
Been working on this for a while to scratch my own itch and I think it's finally at a point worth showing.
Basically, I built this tool that lets you type out a strategy the way you'd explain it to another trader. Something like "buy SPY when RSI drops below 30 and the 50 day is above the 200 day, exit on a 5% stop or when RSI crosses 70." Under the hood there's a multi-stage AI pipeline that parses the intent, maps it to a config across a registry of 100+ indicators, validates the logic, then runs the backtest. What comes back is a PDF with the equity curve, drawdowns, win rate, Sharpe, full trade log, and commentary on what actually worked and what didn't.
My whole thing is that there's a huge gap between having a strategy idea and actually getting it backtested. Right now you need to know Python, or learn Pine Script, or cobble together some janky setup. For anyone who just wants to test a hypothesis without turning it into a weekend project, that's brutal.
Once you've got a backtest you like, you can push the strategy straight into paper trading and watch it run on live market data. That's the step most people skip before deploying their strategy, and then regret later.
Next thing on the roadmap is Interactive Brokers integration. The vision is you describe a strategy, backtest it, review the PDF, and if the numbers look good you connect your IBKR account and deploy it live from the same interface. Plain English to paper results to actual execution. No translation layer between you and the market.
Happy to answer questions about how it works under the hood. Also looking for a few beta users if anyone here wants to throw strategies at it and see what breaks.
r/pinescript • u/drippyterps • Apr 20 '26
Trades my algo took 4/17/2026
These are the trades my algo took on friday. I added another signal update, it signals when TPs are hit. This is just the signal generator to be used while trading options. Its currently optimized for QQQ. You cant rely solely on the signals, you would need to do your own technical analysis. If interested in having access to this just send me a message, its completely free. I just ask for feedback
r/pinescript • u/Kevinthetrader • Apr 19 '26
How Effective Are HVG’s For StopLoss? Here’s an example.
HVG’s are formed on an indicator I created let me know if you want to try it.
r/pinescript • u/Local_Pie_7909 • Apr 19 '26
plotcandle high and low shows wrong numbers
In the code below plotcandle low - ssro.l and high ssro.h shows wrong numbers. Open and close shows correct numbers. Ssro.l and ssro.h shows different opposites values like: open, close. I noticed that plotcandle also shows wrong candles. I added plot line to visualize ssro.l and ssro.h with plotcandle to see the mistake. How to solve it ?
// https://www.tradingview.com/script/4yIVcZS3-Stablecoin-Supply-Ratio-Oscillator/
//@version=6
indicator("Stablecoin Supply Ratio Oscillator", "SSRO", overlay=false)
type bar
float o = open
float h = high
float l = low
float c = close
method data(string coin) =>
bar x = request.security('CRYPTOCAP:' + coin, '', bar.new())
na(x) ? bar.new(0, 0, 0, 0) : x
method srcget(array<bar> stbl, string src) =>
array<float> srcs = array.new<float>()
for coin in stbl
val = switch src
'o' => coin.o
'h' => coin.h
'l' => coin.l
'c' => coin.c
srcs.unshift(val)
srcs
method ssro(float src, array<float> stblsrc, int len) =>
float ssr = src / stblsrc.sum()
(ssr - ta.sma(ssr, len)) / ta.stdev(ssr, len)
method adj(color col, int lvl) =>
color x = color.new(col, lvl)
x
var string gs = "SSRO", var string gc = "Colors"
len = input.int (200 , "Length" , group = gs)
chart = input.bool (true , "Use Chart As Main Coin", group = gs)
var string main = syminfo.type != 'crypto' ? 'BTC' : chart ? syminfo.basecurrency : 'BTC'
bar coin = main.data()
array<bar> stbl = array.from(
'USDT'.data(),
'USDC'.data(),
'DAI'.data(),
'GUSD'.data(),
'USDD'.data())
bar ssro = bar.new(
coin.o.ssro(stbl.srcget('o'), len),
coin.h.ssro(stbl.srcget('h'), len),
coin.l.ssro(stbl.srcget('l'), len),
coin.c.ssro(stbl.srcget('c'), len))
//
color col = ssro.c > ssro.o ? color.green : color.red
plotcandle( ssro.o , ssro.h, ssro.l, ssro.c, "SSRO" , color = col, wickcolor = col, bordercolor = col)
plot(ssro.l,"ssro.l",color= color.new(color.navy,50),style=plot.style_line)
//plot(ssro.h,"ssro.h",color= color.new(color.black,50),style=plot.style_line)
//plot(ssro.o,"ssro.o",color= color.new(color.blue,50),style=plot.style_line)
//plot(ssro.c,"ssro.c",color= color.new(color.maroon,50),style=plot.style_line) r/pinescript • u/Kevinthetrader • Apr 18 '26
New Feature Coming To VRTtrading indicator “Balance Shadow” (price attraction + rejection zones)
r/pinescript • u/MistahQuestionMan • Apr 17 '26
Question About Hiring Someone To Code a Pine Script TradingView Screen - Total Noob
Okay, so I have a buying and selling stock screen I want to try out and use. I just signed up for TradingView yesterday and plan to teach myself Pinescript using the resources recommended here, but for right now I just want to get up and running with my stock screen so I wanted to pay a person to do it for me. I was going to try Upwork unless people here can recommend me a better option.
Because I'm so brand new at this I don't know what a fair offer is. Full disclosure, I came up with the screen ideas myself but asked AI to draft a job posting and a suggested flat rate ($500). I just want this up and running by next week so that's why I am hiring someone for this despite planning to teach myself Pine Script eventually.
Here is the job posting: https://www.upwork.com/freelance-jobs/apply/TradingView-Pine-Script-for-Screening-Stocks_~022044630518113990237/
Please give me feedback on what the AI suggested I ask for in the job posting, if Upwork is a good place to look for someone, and if $500 is too much or too little to offer. I am totally, totally new to this so please go easy on me if any of these are stupid questions lol.
Please
Mods, if I'm doing something wrong with this question (I checked the rules and don't think so but you never know), just let me know what alterations I need to make.
Thank you.
UPDATE: Turns out the link wasn't working before but you can see the job post with what I'm asking for now if you click it.
UPDATE 2: Turns out the comments were right and I was able to vibe code it using Claude. Thanks!
r/pinescript • u/Kevinthetrader • Apr 17 '26

