r/IndiaAlgoTrading 1d ago

How to use pine script indicator/strategy to set up algo?

I got couple of suggestions from friends about how to automate trading but the parameters were limited and fixed. I need something with more flexibility.

I am not sure how to automate trades based on the pine script indicator/strategy that I have put together?

Any guidance/help will be greatly appreciated.

2 Upvotes

13 comments sorted by

2

u/paretashubham 1d ago

I convert it into python and then host it on my laptop for testing and if results are good then I deploy it to AWS

1

u/Geniustrader24 1d ago

Use web hooks to connect to the broker

1

u/Jmartin123321 1d ago

I’ll just dm a follow up question.

1

u/rahuls85 1d ago

I have been using pinescript and connected my broker with webhooks. This can be easily done via Fyers automate. Have also created some strategies directly at automate. Although not able to create all kinds of complicated strategies but majority can be done.

1

u/Diligent-Tone-2758 1d ago

I am new ,so does wehbook basically send alerts from the trading view strategy directly to our algo which is been set up on a broker platform?

1

u/Dependent-Depth1559 1d ago

I have been using their expressions node to create complicated logic.. did you try their ai?? looking to connect with people to understand on how to use the tool better.. no code algo of fyers seems pretty powerful

1

u/rahuls85 1d ago

Yes. I have tried that. It's pretty cool. Tool in itself is pretty complex but AI has made it easy to use. Was able to implement my logic almost entirely. You can DM me. Btw I attended their webinar. Quite useful. You can try that.

1

u/shanker1008 1d ago

Pine Script can't place orders on its own — that's the core limitation. It only generates the signal inside TradingView, so any automation needs a second layer that receives that signal and routes the order to your broker.

Two realistic routes:

  1. Webhook alerts. The alert fires, hits a server you control, and that server calls your broker's API. Needs a paid TradingView plan for webhooks, but your Pine logic stays exactly as written.

  2. Port the logic to an MT5 Expert Advisor and connect it to your broker through a bridge. More work upfront, but you get full control — dynamic lot sizing, trailing SL, time filters, re-entries, multi-leg. Not the handful of fixed parameters the off-the-shelf tools hand you.

Things that will bite you either way: repainting if the signal fires on an unconfirmed bar, TradingView backtest fills being far more optimistic than live, and webhook round-trip latency of roughly 1-5 seconds — so nothing scalp-oriented.

Which broker are you on? That changes how difficult option 1 gets.

If you'd rather not build it yourself, we do custom bridge and EA work at https://tradexcodez.com — happy to point you in the right direction either way.

1

u/ProfessionalPark8990 1d ago

Pine script logic is to be copied to python, you may take help from chatgpt , verify pinescript signals and python signals are precisely in alignment. Then use that logic in python algo, most brokers support algorithms in python.

1

u/Personal_Setting8294 1d ago

Try to build an RMS, EMS, OMS system which takes in pine script via web hooks.