Volume[0] < (MAX(14)[0] * 0.2 ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Volume percentage?
Collapse
X
-
Hello ezrollin,
You could call the SMA if you want an average of the volume.
SMA(Volume, 14)[0]
Or you could calculate this yourself.
long aggregatedVolume = 0;
for (int i = 0; i < 14; ++i)
aggregatedVolume += Volume[i];
Print(aggregatedVolume / 14);Chelsea B.NinjaTrader Customer Service
- Likes 1
Comment
-
Hello ezrollin,
In the Strategy Builder you could use the SMA with the Volume as the Input series.
Math is only available to Series with the offset. The issue trying to aggregate the volume and divide by number of bars would be aggregating only the last 14 bars.
Something like this would likely need to be done by hand in an unlocked script.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
356 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
277 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment