Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Tick Worth
Collapse
X
-
Tick Worth
Is there an Instrument property that returns the worth of a tick? For example, if your current instrument is ES, then that variable or function would return 12.50. I hate to hardcode these things...Tags: None
-
Hello EarlyTrader,
Thanks for your post and welcome to the NinjaTrader forums!
As member gurko advised you can retrieve the instruments point value and multiply times the instruments ticksize to determine the dollars per tick. For example:
if (CurrentBar == 0)
{
Print ("Dollars per tick: "+(Bars.Instrument.MasterInstrument.PointValue * TickSize).ToString());
}
References:
Comment
-
Thank you very much
double tickWorth = Instrument.MasterInstrument.PointValue * TickSize;
did the trick.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by sjsj2732, 03-23-2026, 04:31 AM
|
0 responses
148 views
0 likes
|
Last Post
by sjsj2732
03-23-2026, 04:31 AM
|
||
|
Started by NullPointStrategies, 03-13-2026, 05:17 AM
|
0 responses
352 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
390 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
182 views
1 like
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
137 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|

Comment