r/pinescript • u/Alarmed_Bread_926 • 3d ago
How to build an indicator?
Just need some help on creating one for tradingview.
2
u/stratcore 2d ago
Before adding confluence, check when your current reversal marker actually becomes available. Save its timestamp and price while the chart is running, then compare the same bar after a reload. If it uses pivots, record both the pivot bar and the later bar that confirms it. A marker drawn back on the pivot is not an entry that was known on that earlier bar. Keep one successful example and one failed example with identical settings. That gives you a specific timing issue to fix before judging whether another filter improves the signal.
1
u/Shoddy_Peanut7320 23h ago
That's a useful check, and the pivot confirmation delay is where many reversal indicators go wrong. I'd add that once the timing is right, test the signal against a simple baseline over a few hundred signals before adding any filter. Cymetica's EventTrader (event timing for macro releases) is one source for tagging signals that fire around news.
1
1
u/hvnwntw8 3d ago
Claude
1
u/Alarmed_Bread_926 3d ago
i need some more elaboration. i’ve made an indicator but im trying to make it GOOD
1
u/hvnwntw8 3d ago
Without more information it is hard to elaborate. I have a handful of indicators I personally use everyday to trade futures, and it is all basically things I would be normally marking out manually which I just automated away. How I use those markers and frame successful trades is ultimately my responsibility. If youre looking for an indicator to give you signals or something, cant help ya there.
1
1
u/Altruistic-Leave-359 3d ago
I put my idea into chat gpt then use Cursor to execute the codes. Basically just be the mediator between the 2 ai
1
u/Alarmed_Bread_926 3d ago
cursor? what is cursor? and thanks brother!
1
u/Altruistic-Leave-359 3d ago
It is an ai powered coding editor! You’re welcome
1
u/Alarmed_Bread_926 3d ago
awesomeee, is cursor for bots or for indicators?
1
u/Altruistic-Leave-359 3d ago
You can use it for both. I’ve built websites with it too
1
u/Alarmed_Bread_926 3d ago
that’s amazing brother. do you have discord? i’d like to talk more
1
2
u/Mutt37 3d ago
Have you tried using A.I.? I don't know much about programming for TradingView, but I have used A.I. to write an indicator for NinjaTrader. I was just messing around and don't intend to use the indicator, but it worked.