Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Lot Size
Collapse
X
-
Tags: None
-
Hello shildebrand324,
Thanks for your post.
Tick data contains the total volume for the tick and does not break it down into individual lots. Something you could consider is to get the Volume from the data series and convert the volume into lots using math.
For example, you could do Volume / Lot size to get the number of lots that occurred.
See this help guide page for information about accessing Volume and sample code: https://ninjatrader.com/support/help...ies_volume.htm
Let me know if I may further assist you.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
-
Hello shildebrand324,
Thanks for your note.
As stated in post # 2, you could calculate the Volume divided by the Lot Size to get the number of lots.
One standard lot would be 100,000, a standard mini-lot would be 10,000, and a standard micro-lot would be 1,000.
To see the Forex Lot Size set on your account, you could right-click on the account in the Accounts tab of the Control Center and select 'Edit account'.
See this help guide page for more information about working with Forex: https://ninjatrader.com/support/help...#ForexLotSizes
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
So, on E-mini, I would take the volume of the bar and divide by 10,000? I'm on a tick chart, all bars are volume of 2,000?
Comment
-
Hello shildebrand324,
Thanks for your note.
That is correct, you would take the Volume[0] and divide it by 10,000.
If you are using a Tick chart, such as a 1000 Tick chart, each bar on the chart would be 1000 Ticks. Once the current bar reaches 1000 Ticks, the bar would close and a new bar would form.
See this help guide page for information about accessing Volume and sample code: https://ninjatrader.com/support/help...ies_volume.htm
See this help guide page for more information about understanding Tick bars: https://ninjatrader.com/support/help...andingTickBars
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
We must be talking around each other...I'm using 2000 tick chart and dividing 2,000/10,000 is not going to tell me if someone placed, say, a 500 lot order.
Comment
-
Hello shildebrand324,
Thanks for your note.
I understand that you are dividing the number of Ticks in a bar on the chart (2000) by the Lot Size (10,000). You would instead need to divide the Volume[0] by the Lot Size, not the number of ticks in a bar on the chart.
A single tick could have more than a volume of 1. For example, Tick 1 could have a volume of 3, Tick 2 could have a volume of 1, and Tick 3 could have a volume of 4. This means that although 3 ticks occurred, the total volume of those 3 ticks is 8.
Volume[0] could be used to get the current volume value in NinjaScript. If you add a print in your script that prints out Volume[0] and enable the indicator with Calculate.OnBarClose on the chart, you could see the total volume for the 2000-Tick bar.
You would then need to divide that Volume[0] by the Lot Size to get the number of lots.
Volume[0] / Lot Size = # of Lots
Please review this help guide page for information about Volume[0]: https://ninjatrader.com/support/help...ies_volume.htm
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
-
Hello shildebrand324,
Thanks for your note.
Yes, that could be the case depending on the values that you are calculating.
Prints should be used in the script to determine exactly how the script is processing values and calculating logic.
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121
Let me know if I may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
607 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
353 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
560 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
561 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment