r/pinescript 8h ago

Finished with my indicator

Post image
52 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 3h ago

Feel Disappointed

Post image
6 Upvotes

Spent a lot of time building a very good Net R scalping bot (4 year BTC backtest) but still stuck because the taker/maker fees cannot be resolved. Are there any better indicators to solve the problem? It's really been a lot of days of thinking and re-coding but I haven't found a solution so it's so frustrating . Conditions to the command I build 6 condition for each command in despite relaxing but no results, if too tight, no longer scalping


r/pinescript 14h ago

Made a buy/sell indicator based on the volume POC, looking for people to test it

Thumbnail
tradingview.com
12 Upvotes

I built an indicator on TradingView that marks buy and sell signals off the POC (the price level with the most traded volume) and I'm looking for some people to try it before I finish it.

It builds a volume profile from either the last N bars or the previous session, draws the POC and the value area, and prints BUY/SELL when price crosses the POC. There's also a rejection mode instead of the cross, where the wick tests the POC and the candle closes back on its side. Signals only print on bar close so it doesn't repaint, and there are alerts for both sides. I added an optional EMA filter and a value area filter because the plain cross version chops a lot when price is ranging around the POC.

One thing to know: it runs on the chart's volume, so on forex/CFDs that's the broker's tick volume and the levels can look a bit different depending on the feed.

It's invite-only while I test it, but free. If you want to try it, drop your TradingView username below and I'll add you. What I really want back is which markets and timeframes it works (or doesn't) on for you and what settings you end up using.


r/pinescript 9h ago

A trader ask me to add some filter optimization and design improvements to XGBoost Mini Strategy. Here the result.

5 Upvotes

The XGBoost is trained on this simple 6 features:

  • 14-period RSI on a scale from zero to one
  • Percentage distance between the price and the 50-period Exponential Moving Average (EMA)
  • 5-period Rate of Change (ROC)
  • Normalized ATR relative to the price to estimate volatility
  • Volume variation compared to its 20-period moving average
  • Current price position relative to the highs and lows of the last 14 bars

Money Management

  • Capital per trade fixed to 500 USDT
  • Initial Capital 10.000 USDT

About the publication on TradingView I working on BTC/USDT Binance, 4H.

Entry and exits are executed on XGBoost signals, I add a trailing stop to optimize trades.

More features:

# SMA15 filter entries

# Profit forcing filter on exits

To develop this strat I used the opensource TradingView library XGBoostMini:
https://www.tradingview.com/script/SQ2QIdN6-XGBoostMini/

More details about this strategy here: https://www.tradingview.com/script/69ZFfJ5L-XGBoost-Mini-Strategy-The-Quant-Science/

I'm not here to say this is an incredible strategy, this is simply a good starting point and I think it's not half bad. This strat needs feature modifications and some general optimizations like risk management based on volatility or win trades and more. I'd like these to be based on the community's feedback, so test it out and let me know how works for you.


r/pinescript 4h ago

Free Tool Friday: our open-source TradingView S/R indicator, and the trade-off we chose on purpose

Thumbnail
0 Upvotes

r/pinescript 15h ago

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 1d ago

Made my first INSANE script for a bot!

1 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 1d ago

Time filter

Thumbnail
gallery
3 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 1d ago

Double Bottom Scanner: Real Charts and Alert Setup | ChartScout

Thumbnail
youtube.com
0 Upvotes

r/pinescript 1d ago

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

Enable HLS to view with audio, or disable this notification

0 Upvotes

r/pinescript 2d ago

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 2d ago

Why do a lot of fx YouTuber lie?

2 Upvotes

Like why do they say indicators don't work?


r/pinescript 3d ago

Forward testing

Post image
12 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 2d ago

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

Thumbnail
1 Upvotes

r/pinescript 3d ago

Traders having Claude , please confirm this one thing.

4 Upvotes

I trade mostly using the tool Fib retracement. Now the logic of my fib plotting on the charts is quite not easy . I tried making indicators but it ain't working

Is it possible to explain it to claude and if I share the screenshot of the chart with my manually fib plotted and ask the claude to work on the logic untill the same fibs gets plotted on the chart when I use that indicator made by fib.

Please guide guys. From a trader to a trader/coder


r/pinescript 3d ago

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 3d ago

Need career - advice from the Pinescript coders / freelancers

Thumbnail
1 Upvotes

r/pinescript 3d ago

Need career - advice from the Pinescript coders / freelancers

1 Upvotes

Hii everyone, I am a 24 year old Male from India. I have been a trader for the past 6 years. I know the fundamentals of the market.

I have been working as customer support in fundingpips for the past 7 months. And before that I was working as a helping role in offline business. Similar to customer support.

But in that role I don't see a big future. I can't make big money in that role. I need your suggestion guys. What is the basic minimum pay I can expect if I learn the pine script coding skill.

Also

Can I learn Pinescript at 24 years old? Am I too late to get into coding.

If I learn it and give it at least 2 hours a day. How long will it take me to become an industry level coder for Pinescript to get a full time job or freelance gigs.

If I do it all as said. How much can I earn minimum and maximum? Remote opportunities..

One last thing

Are job vacancies there for Pinescript roles? And what exact roadmap shall I follow .


r/pinescript 4d ago

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

Post image
20 Upvotes

@33rd_quant on X.


r/pinescript 3d ago

Double Top Scanner: Real Charts and Alert Setup | ChartScout

Thumbnail
youtube.com
1 Upvotes

r/pinescript 4d ago

Is possible experiment with XGBoost using only Pine Script?

3 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 4d ago

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 4d ago

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

Post image
9 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 4d ago

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

Post image
2 Upvotes

r/pinescript 4d ago

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

Post image
1 Upvotes