How is it possible to retrieve the data provider settlement price of a instrument within ninjascript. The Market analyzer does retrieve this price, so I know that kinetic supplies it. I realize you could get the prior day close price, but I would like to retrieve that actual settlement supplied by Kinetick. Any suggestions.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get Settlement Price from Data Provider (Kinetick)
Collapse
X
-
Get Settlement Price from Data Provider (Kinetick)
Hi,
How is it possible to retrieve the data provider settlement price of a instrument within ninjascript. The Market analyzer does retrieve this price, so I know that kinetic supplies it. I realize you could get the prior day close price, but I would like to retrieve that actual settlement supplied by Kinetick. Any suggestions.Tags: None
-
Hello woodyfox,
In NT8 the MA columns are now in the NinjaScript editor so you can actually copy their code. The following is how the settlement is found:
In another script like an Indicator, you would replace CurrentValue (MA Specific) with a variable or set this value to a plot.Code:protected override void OnMarketData(Data.MarketDataEventArgs marketDataUpdate) { if (marketDataUpdate.IsReset) CurrentValue = double.MinValue; else if (marketDataUpdate.MarketDataType == Data.MarketDataType.Settlement) CurrentValue = marketDataUpdate.Price; }
I look forward to being of further assistance.
- Likes 1
-
Hello Bobin,
Settlement prices are not part of the market data which the platform can utilize for historical data so you could not use that type of data from historical. If you have a provider which supports that market data type you can try to record playback data and then use the recorded data. You can turn on playback recording in the Tools-> options-> market data menu. In any case you cant use that data from OnBarUpdate but would need to use the sample from post #2 for realtime processing.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
636 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 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
568 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment