When you script an alert in Pinescript (Tradingview) you can have it point outward toward a webhook address, or you can send it to an email address. I don't think the potential of email alerts has been explored enough. So i've recently began to experiment with it.
The potential to handle incoming email is fully exploited with Microsoft Outlook (so this is for 365 subscribers).
But Tradingview won't send alerts to an Outlook address. So instead you just send the alert to your regular Gmail address and use a filter in Gmail to forward specific incoming to any other address you want.
I haven't done any tests yet on the latency this might add, compared to a webhook...but the forwarding process generally gets done within 15 seconds with everything, including my laptop, going through my phone as a hotspot. So this might be too slow for some kind of high frequency trading, but plenty for others. Faster connections might work better.
Once into Outlook, then VBA script can take over the monitor of incoming, the reading, and the execution of any other applications needed to execute trades.
One way to execute trades is to have VBA Outlook start communicating with Excel. Through Excel you can communicate with your broker if they offer an API.
Another way to execute trades is to open a third party app like AutoIt, which will take any kind of parameter as input (while the app is being called). The interesting thing about calling an app like this is you can now place trades through the manipulation of a GUI, in the case you don't have any API to work through.
This method is especially needed for example, for US customers of funded accounts like The5ers who recently had to restrict it's US customers from using MT5, and moved them over to a web based app which does not offer any kind of API access. Therefor there are not even any webhook services that could help automate anything.
Through something like AutoIt, you can exploit send-keys (such as TAB navigation) as well as mouse-clicks to any coordinates on your screen. There isn't a single GUI that you could not throughput pretty much any kind of trade that they offered.
It gets tricky when you can't interrogate the GUI for any information about price, or open positions, or pending positions, or whether the trade you wished to open was actually opened.
Still, you could get something going if you can closely match the price data source for the GUI with the many sources available on Tradingview. Recently i asked The5ers for info about the data sources for the symbols that they offer. Found out it is either Oanda or FXCM.
Working with a GUI could also help if you want to trade through Tradingview itself. You see, just because they have connections between their platform and many brokers, it doesn't mean it is automated. A "Strategy" won't communicate. It all still manual trading. So too with "Paper Trading" through Tradingview.
The potential to handle incoming email is fully exploited with Microsoft Outlook (so this is for 365 subscribers).
But Tradingview won't send alerts to an Outlook address. So instead you just send the alert to your regular Gmail address and use a filter in Gmail to forward specific incoming to any other address you want.
I haven't done any tests yet on the latency this might add, compared to a webhook...but the forwarding process generally gets done within 15 seconds with everything, including my laptop, going through my phone as a hotspot. So this might be too slow for some kind of high frequency trading, but plenty for others. Faster connections might work better.
Once into Outlook, then VBA script can take over the monitor of incoming, the reading, and the execution of any other applications needed to execute trades.
One way to execute trades is to have VBA Outlook start communicating with Excel. Through Excel you can communicate with your broker if they offer an API.
Another way to execute trades is to open a third party app like AutoIt, which will take any kind of parameter as input (while the app is being called). The interesting thing about calling an app like this is you can now place trades through the manipulation of a GUI, in the case you don't have any API to work through.
This method is especially needed for example, for US customers of funded accounts like The5ers who recently had to restrict it's US customers from using MT5, and moved them over to a web based app which does not offer any kind of API access. Therefor there are not even any webhook services that could help automate anything.
Through something like AutoIt, you can exploit send-keys (such as TAB navigation) as well as mouse-clicks to any coordinates on your screen. There isn't a single GUI that you could not throughput pretty much any kind of trade that they offered.
It gets tricky when you can't interrogate the GUI for any information about price, or open positions, or pending positions, or whether the trade you wished to open was actually opened.
Still, you could get something going if you can closely match the price data source for the GUI with the many sources available on Tradingview. Recently i asked The5ers for info about the data sources for the symbols that they offer. Found out it is either Oanda or FXCM.
Working with a GUI could also help if you want to trade through Tradingview itself. You see, just because they have connections between their platform and many brokers, it doesn't mean it is automated. A "Strategy" won't communicate. It all still manual trading. So too with "Paper Trading" through Tradingview.
Last edited: