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 CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
45 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
136 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
190 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
101 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
141 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|

Comment