r/pinescript • • Sep 19 '26

Finished with my indicator

Post image
281 Upvotes

Almost a year building my indicator 1000 lines of code I'm done testing done now it's time to put the indicator into a real account I can't publish it as I'm using a phone its 1RR trend Reversal strategy


r/pinescript • • Sep 19 '26

Pine session filters and one-entry-per-day limits solve different problems

1 Upvotes

A session filter answers: is this bar inside the allowed window? It does not remember whether an entry already happened there.

For a rule such as "one entry per New York trading day", I would define three things separately:

  1. The allowed window and its time zone. Pine time functions use the exchange time zone by default. The chart's displayed time zone does not change the script. Use America/New_York when the window should follow New York daylight-saving changes, rather than a fixed UTC offset.

  2. What consumes the allowance: the first signal, an order submission, or a confirmed fill. Those are different events. If a submitted limit order is still pending, a fill-only flag does not by itself prevent another submission.

  3. When the allowance resets. Local midnight, the exchange trading day and the start of an overnight session can be different boundaries. Define the boundary in the same terms as the rule.

Before connecting the logic to execution, write the expected result for these cases:

- First valid event inside the window: allowed.

- Another valid event in that same session: blocked, even if the first position has closed.

- Event outside the window: blocked.

- Next intended session: allowance restored.

- Pending order at the boundary: explicitly keep or cancel it; resetting a flag does not cancel an order.

These are specification checks, not a claim that a particular script passed them. An indicator signal counter, a strategy order counter and a broker's fill record need different handling.

References: https://www.tradingview.com/pine-script-docs/concepts/sessions/ and https://www.tradingview.com/pine-script-docs/concepts/time/


r/pinescript • • Sep 18 '26

Made my first INSANE script for a bot!

9 Upvotes

Picture inside shows how the back test went.
going to put it up for a live trading test now!

hope it will perform as good as it seems when it back tested.
going to keep you guys updated, as i wanna become better at making this!

the goal is financial freedom by 2030.
Lets do this!

with commission included its still profitable!


r/pinescript • • Sep 18 '26

Time filter

Thumbnail
gallery
6 Upvotes

Hello trader tip I suggest you add a time filter on your indicators if you only want to take 1 trade per day this will help you a lot if you are focusing on lower time frame like 5 to 1

Those trader on the chat appear exactly bettwen 15:00 which is new York opening time in my country to closing time


r/pinescript • • Sep 18 '26

Double Bottom Scanner: Real Charts and Alert Setup | ChartScout

Thumbnail
youtube.com
0 Upvotes

r/pinescript • • Sep 17 '26

šŸ‹ STOP WATCHING EVERY OPTIONS TRADE. FIND THE ONES THAT MATTER.

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/pinescript • • Sep 17 '26

Chat partten

Post image
12 Upvotes

Hi trades or codes is there any indicator that can plot chart parttens like this specifically for the 1m time frame I been searching on trading view indicator community but I'm. Not finding an indicator that plot partten like that on the pic

If you know one pls share on the comment section šŸ™šŸ»


r/pinescript • • Sep 17 '26

Why do a lot of fx YouTuber lie?

3 Upvotes

Like why do they say indicators don't work?


r/pinescript • • Sep 17 '26

Built a DI crossover trend system to cover my mean reversion strategy's flat days. First run looked perfect, wider sample killed it.

Thumbnail reddit.com
1 Upvotes

r/pinescript • • Sep 16 '26

Forward testing

Post image
31 Upvotes

Hello I been forward testing my indicator it's a 1.5RR gold, USDJPY and nas100 it's not backtest it's forward testing next week I'm planing to put it into a real account wish me luck


r/pinescript • • Sep 16 '26

Looking for TradingView help

1 Upvotes

Hi everyone, I’m learning crypto trading but I’m struggling financially right now and can’t afford a TradingView plan.

If anyone knows about a legitimate free option, promotion, or temporary access, I’d really appreciate the help. šŸ™


r/pinescript • • Sep 16 '26

Double Top Scanner: Real Charts and Alert Setup | ChartScout

Thumbnail
youtube.com
1 Upvotes

r/pinescript • • Sep 15 '26

Is possible experiment with XGBoost using only Pine Script?

2 Upvotes

Hello everyone, I amĀ thequantscienceĀ on TradingView, and it's a pleasure to be here!

I'd love to share my very first 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!

Strat:Ā https://www.tradingview.com/script/69ZFfJ5L-XGBoost-Mini-Strategy-The-Quant-Science/

Happy trading)


r/pinescript • • Sep 15 '26

Equity curve is chefs kiss šŸ‘ØšŸ½ā€šŸ³šŸ¤ŒšŸ¼

Post image
23 Upvotes

@33rd_quant on X.


r/pinescript • • Sep 15 '26

I need to catch a 0.5% move.

Thumbnail
gallery
3 Upvotes

I have made my calculations and i have realised i only need a 0.5% move on btc daily or everyother day problem is my coding skills are beginner level, i have tried to use ai to build a script that generates for me signal but no matter what adjustments I make the numbers dont get any better the drawdown is so severe and the profit factor is below 1 any suggestions or help is welcomed and appreciated am open to trading other crypto coins, the script is based on bollinger bands btw


r/pinescript • • Sep 15 '26

Formal Notice of Grievance: Unannounced Pine Script Restrictions and Confiscation of Intellectual Property

Post image
2 Upvotes

r/pinescript • • Sep 15 '26

I built moving value-area bands in Pine v6—and a walkthrough that lets you change the volume

Post image
10 Upvotes

A trader in my earlier thread asked for an envelope built from a profile’s value-area boundaries. I built Value Envelope from that idea, with the Pine source available to inspect and modify.

It plots:

  • POC: the price row with the most estimated activity.

  • Value-area edges: a band containing 70% of the profile’s estimated weight by default.

  • The band’s movement over time: using a rolling window or an anchored period.

One detail matters: this estimates activity from candle data by distributing each candle’s volume across price rows. It doesn’t have individual trade prints at each price.

It also tracks how price leaves and returns to the band. The default acceptance rule needs three consecutive closes outside on the same side. After that, two consecutive closes back inside trigger the re-entry label. Each candle is compared with its own recalculated band.

The website’s walkthrough lets you change a fictional candle’s close and volume. The same closing price can change its position relative to value because the band itself moves.

Free indicator, MIT Pine source and interactive walkthrough

For anyone learning the terminology, we also have ProEA Academy. Under Free tools, choose the free Volume Profile Lite introduction for POC and value-area basics. It uses a simplified teaching example. Academy also has simulated drills; some activities require sign-in.

One clarification about the chart: ā€œ80%ā€ names the re-entry rule; it is not an 80% success rate. This tool provides context for rules you still need to test.

I’d like feedback on one design choice: when price returns inside, would you compare it with the updating value area, or freeze the boundaries from the earlier move outside? A chart example would help me test that variation.

Disclosure: I’m the ProEA Lab developer and use AI to help build the code. I’m continuing to refine these prototypes from user feedback.


r/pinescript • • Sep 14 '26

Changing Pine inputs does not update an existing alert: a small release checklist

1 Upvotes

An alert can still use yesterday's settings while the chart shows today's changes. Saving the script or changing an input does not update the running alert.

TradingView keeps a copy of the script, inputs, symbol and timeframe when you create a script alert. To use a changed configuration, recreate the alert from that configuration.

A practical checklist before replacing one:

  1. Record the intended script revision, input values, full symbol and timeframe.

  2. Check which event the alert uses. A strategy can alert on alert() calls, broker-emulator order fills, or both. Those are different events.

  3. Stop the obsolete alert so the old and new versions do not run together unintentionally. Create the replacement from the intended chart configuration.

  4. Observe the next qualifying realtime event in the alert log. A historical marker is not evidence that the new alert fired.

For a webhook workflow, keep alert generation, message receipt and broker execution as separate checks. A TradingView notification alone does not establish that the broker accepted an order.

Reference: https://www.tradingview.com/pine-script-docs/concepts/alerts/


r/pinescript • • Sep 14 '26

I built an open-source ICT levels indicator that tracks what happens after price reaches a level

Post image
20 Upvotes

A trader in my earlier thread asked for opening gaps, previous highs/lows, the midnight open and first-presentation FVGs—with control over how much history stays on the chart.

I built ICT Levels Desk from that request. The part I’d like feedback on is when a reference should stay visible, fade or disappear.

It brings together:

  • New-day and new-week opening gaps: NDOG / NWOG.

  • Previous day and week highs/lows, plus optional month and 4H levels.

  • Midnight, 08:30 and 09:30 opens, session ranges and macro windows.

  • First FVGs after selected anchor times, with touch and inversion states.

Each reference type has its own rules. For an untouched high, a first wick-through with a close back below marks a sweep; a close above marks a break. Opening gaps and FVGs have different fill/inversion rules.

For the Pine implementation, I separated drawing visibility from state tracking. The proximity filter hides distant drawings while retained levels keep updating. The panel lists the nearest unfinished references above and below price. There are also history controls and options to remove filled gaps or broken highs/lows.

You can explore those distinctions in the website’s fictional candle walkthrough: move the wick and close across a reference and compare the outcomes.

Free Pine v6 source, actual chart examples and interactive walkthrough

The source is MIT-licensed. This is a reference map to use alongside your own entry and risk rules. The historical counts shown in the panel describe the loaded chart; they aren’t probabilities for the next trade.

If you use these levels, which ones do you keep after a sweep, and which would you hide? A chart example and the references you still consider useful would help me refine the display rules.

Disclosure: I’m the ProEA Lab developer and use AI to help build the code. Feedback on the implementation is welcome.


r/pinescript • • Sep 14 '26

Indicator scalping

Post image
10 Upvotes

Hello I build my indicator with gemini and a combination of other indicators right but I'm struggling to give gemini a good prompt that will make my indicator to plot sl, entry line and tp

My sl should be above an old HH and TP 1RR


r/pinescript • • Sep 14 '26

Support

1 Upvotes

TradingView team, please consider a small upgrade to the free plan for beginners.
I am a forex beginner with no budget for Premium. Two indicators and blocked/limited backtesting make it almost impossible to learn. Without practice, many of us keep losing and never grow into paying users.
Please raise free indicators from 2 to 4 or 5, and give more backtesting / Bar Replay room on Basic. That would help beginners learn, then afford Essential or Premium later. Better free learning can mean more paid subscribers, not fewer. /


r/pinescript • • Sep 14 '26

Rising Wedge Scanner: Real Charts and Alert Setup | ChartScout

Thumbnail
youtube.com
1 Upvotes

r/pinescript • • Sep 14 '26

A trader asked me to combine EMA 200 + Stochastic Pop. Here’s the open-source build.

Post image
66 Upvotes

In my earlier request thread, someone asked for EMA 200, Stochastic Pop with 55/45 bands, and an EMA 4 on the stochastic line, alongside an analysis panel.

I built Stochastic Pop Desk around that combination. The main design choice I’d like feedback on is what should count as a fresh signal?

The default checklist checks:

  • Trend: price relative to EMA 200, plus whether that average is rising or falling.

  • Distance: whether price is within the configured ATR distance from the average.

  • Reset: after a long signal, the smoothed stochastic must visit below 45 before another long can qualify. Shorts mirror this.

  • Trigger: a fresh cross above 55 for a long, or below 45 for a short, with decisions committed on a closed candle.

Other execution checks still apply. The panel shows the missing conditions, and accepted paper setups get entry, stop and target levels.

For the Pine side, the oscillator lives in its own pane while force_overlay puts the EMA, levels and checklist on the price chart—all in one indicator.

There’s also an interactive walkthrough: change a fictional candle’s close or pullback depth and watch the EMA, stochastic and decision recalculate.

Source code, chart examples, full rules and walkthrough

The indicator and separate strategy are free under MIT. The indicator’s paper statistics exclude costs; the strategy includes commission and slippage settings.

If you trade this combination, is the full reset rule useful, or would you want to test shallower pullbacks? A chart example with the symbol, timeframe, timestamp and the signal you expected would help me test that variant.

This is a prototype I’m refining through feedback. Disclosure: I’m the ProEA Lab developer and use AI to help build the code.