You need to enable JavaScript in order to visit our site!
 
Logo PTMC
NAVIGATION
CANCEL
 
or via PTMC account
Restore password
or via PTMC account
Logo PTMC
NAVIGATION
or via PTMC account
Restore password
or via PTMC account
or via PTMC account
Restore password
or via PTMC account

Volume ()

method
Volume of Ticks for Bid/Ask based Historical data, or volume of Trades for Trade based Historical data.

Syntax

public double Volume ()

Return

double Returns a double value representing the volume of the referenced element.

Example


The following example references and displays the value of the last bar Volume by selected on chart instrument:

// Example #1
BarData instr_history = (BarData)CurrentData;
Print(instr_history.Volume());

 The following example references and displays the value of the last bar Volume by specified instrument:

// Example #2
Instrument eurusd = Instruments.GetInstrument("EUR/USD");
BarData  eurusd_history= (BarData)GetHistoricalData(new HistoricalDataRequest(eurusd, 1));
Print("EUR/USD Volume: " + eurusd_history.Volume());
Discussion
Join PTMC community to post your comments
No comments yet. Be the first.
PTMC is a professional trading platform that combines all the best charting and analytical tools to trade on different financial markets. It is developed by PFSOFT UK LTD, a global provider of trading technology for banks & brokers
© 2024. PTMC is based on Protrader technology
PFSOFT UK LTD
71-75, Shelton Street,
Covent Garden,
London, WC2H9SQ,
United Kingdom
Support & Development
PFSOFT Ukraine
Office #701
Mechnikova Street, 10B
49000, Dnipro, Ukraine
Contact us
Phone: +380 56 740 30 01
E-mail: info@protrader.org
Skype: PTMC_support
Find more ways to contact
Join us in social networks