TradingView
twingall
Mar 25, 2023 1:19 PM

Import Forex Volume from 5 biggest FX Brokers (single/combined)  

Euro / U.S. DollarFOREX.com

Description

Some Brokers like Forex.com don't show Volume for FX. This indicator allows user to import Volume from a range of FX brokers that DO show volume

-Combine the reported volumes from all five brokers: FXCM, GLOBALPRIME, PEPPERSTONE, Currency.com, OANDA. Or pick a specific broker to import volume from.
-Image above shows combined Volume from the big 5 brokers, with added notes on the 2yr average of various broker's volumes; showing their size in descending order.
-Works across timeframes & FX pairs. Standard color formatting options Added.

//notes:
~default settings pull/combine volume from all 5 brokers. History goes back to Sept 2019 (due to GlobalPrime's later start date in publishing Volume data).
~~toggle ON 'only show FXCM, Pepperstone & Oanda' for a LONGER history, going back to June 2012.
~individual broker feeds: top checkbox toggled OFF, choose your preferred broker.
~~FXCM has both the longest history and the highest volume size of all the brokers.
~Table (toggle on/off) shows the broker feed (which broker(s) volume is on display) and the SMA 100 to give an idea of relative size.

//Cautionary note:
Volume is not as reliable in Forex as it is in Equities/commodities, due to unreported Inter-bank trades; the broker volumes do not give the full picture, but this is a best approximation of combined total volume based on brokers reported volume. The true volume will likely be much higher.

-Thank you @theEccentricTrader for the idea of pulling volume feed from other brokers.

Release Notes

-fixed minor error in code, volume bars will now print as intended when open=close

Release Notes

-Import Volume from CME currency futures markets: Default is toggled off. Toggle ON will override all other settings. Working for EurUsd, GbpUsd, AudUsd, NzdUsd, UsdChf, UsdJpy.
-i.e. if Eur/Usd FX chart, will show volume from 6E1! continuous futures contract (CME). If If USD is the first part of the currency pair, volume from inverse of the futures chart will be shown (i.e. Usd/Cad =>> volume from 1/6C1!)
Example usage: Usd/Cad (FXCM) showing the Volume from the inverse Futures market: 1/6C1! (CME)

Release Notes

-update cover chart annotations

Release Notes

-fix alignment

Release Notes

-fix alignment

Release Notes

-Updated to replace Global Prime with Eightcap (Global Prime no longer seem to be integrated with Tradingview)

Release Notes

-Update to include ALL the crosses for importing Futures mkt volume (e.g. Eur/Gbp FX pair will import the futures volume from 6E1!/6B1!)
-Changed default setting of 'Show only futures mkt volume' to Toggled ON: since i think this is the most useful application of this indicator. Toggle it off is you want to see Various broker volume/options.
Comments
naturesdream48
Hello.Nice indicator thanks. How can I see XAUUSD, NASDAQ, DAX and BTCUSD?
twingall
@naturesdream48, you could insert this code between lines 62 and 63:
syminfo.ticker =="XAUUSD"?"GC1!": syminfo.ticker =="BTCUSD"?"BTC1!": syminfo.ticker =="NDX"?"NQ1!":
replace NDX with whatever nasdaq cfd ticker you wish to trade. For DAX do likewise: syminfo.ticker=="yourCFDticker"?"futuresTicker":

NOTE: because this is designed for FX, you would need to delete or comment-out everything from line 80 onwards for this to work without errors
naturesdream48
@twingall, thanks for the fast reply. So this will only work for futures right, not on other brokers? Does Futures (CME) has the best volume on tradingview? Is it worth to buy real-time version? Or which one is the best from free brokers?
twingall
yes only for futures.. depends on the market. I don't trade btc but i imagine CME is not the best volume for that. Check the numbers/ compare various brokers with futures volume and see for yourself.. Perhaps you could use this as a template to do similar amalgamation with all the various big crypto exchanges.. For indices like nasdaq & S&P i would personally favour the CME tickers for volume.. i think it's £6 or $6 a month for the CME, CBOT, COMEX, NYMEX — CME Group bundle.. you can try it for 1 month and see..
or just compare the history of CFD nasdaq volume with the CME's NQ1! volume and see the difference
xtrader1
Nice!
Suggestion: i find that plotting futures volumes below spot FX gives better insights (Institutional players footprint)

When trading crosses you might wanna have a look at the aggregate volume of the 2 futures contracts (show 6E1!/6N1! volume below EURNZD pair)
twingall
@xtrader1, Thanks! Great idea, have just updated to show all the cross pairs when using 'show only futures market volume'.
louai
not working study error
twingall
@louai, thanks for the heads up. Fixed: see release note above
More