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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
43 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
30 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
47 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
38 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment