Jsoldat
Pine Script Rookie
Pine Script Rookie
Posts: 1
Joined: March 1st, 2022

Connecting scripts to MT4 with Pineconnector

I vould like to connect a script to MT4 using Alerts on Trading view and Pineconnector.

There is one thing I have never understood: How to manage multiple forex pairs.

As every script in pine works on the basis of the chart opened on TV. How can I go about managing simultaneously more than one pair?
So my goal is to have the same script working on every pair I want and generate alerts on those pairs in order to open positions on MT4.

And I have one more question. Having Pineconnector, do I have to leave every chart open on TV and my computer on with MT4 all the time?

You would be of great help to me. Thank you :happy2:

processingclouds
Pine Script Master
Pine Script Master
Posts: 115
Joined: January 30th, 2022

Re: Connecting scripts to MT4 with Pineconnector

Hey,

You can use request.security functions to get data from other symbols on same chart.

Also the alerts work on trading view own servers, so you do not really need everything open after you have set alerts.

Return to “Pine Script Q&A”