double volume0 = Instrument.MasterInstrument.InstrumentType == InstrumentType.CryptoCurrency ? Core.Globals.ToCryptocurrencyVolume((long)Volume[0]) : Volume[0];
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
OBV and ADL are based on CryptoCurrency?
Collapse
X
-
OBV and ADL are based on CryptoCurrency?
Hello, I am looking at the ADL and OBV indicator codes and they both have this line of code:
Code:
Tags: None
-
Hello JohnS52,
These indicators are not created for crypo-currency specifically, but do work with volume. With indicators that work with volume, if these were to be applied to a crypto instrument chart by the user, these must have considerations for fractional volume (whereas all other instruments have whole numbers for volume).
"Note: For working with Cryptocurrency instruments which report volume fractional, please use the VOL() indicator series, or store the volume for your script in a custom variable and convert alongside our VOL() indicator (Instrument.MasterInstrument.InstrumentType == InstrumentType.CryptoCurrency ? Core.Globals.ToCryptocurrencyVolume((long)Volume[0]) : Volume[0])"
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by adeelshahzad, Today, 11:49 AM
|
1 response
3 views
0 likes
|
Last Post Today, 11:56 AM | ||
Started by spottysallrite, Today, 11:31 AM
|
1 response
5 views
0 likes
|
Last Post Today, 11:43 AM | ||
Started by johnMoss, 03-04-2024, 01:53 PM
|
2 responses
32 views
0 likes
|
Last Post
by Overnhou
Today, 11:21 AM
|
||
Started by Padan, Today, 02:02 AM
|
5 responses
17 views
0 likes
|
Last Post Today, 11:14 AM | ||
Started by Lele2k24, Yesterday, 11:24 AM
|
8 responses
29 views
0 likes
|
Last Post
by Lele2k24
Today, 11:00 AM
|
Comment