For example, right now on 10/26, looking at SPY the LastClose value is 108.08 (from 10/23) on but the priorDayOHLC close value is 108.15.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
LastClose
Collapse
X
-
LastClose
How do I reference the "LastClose" value from MarketAnalyser in a Ninjascript ? I put the close value from priorDayOHLC side by side with the LastClsoe value and they are different, and I would like to access the LastClose value from my script.
For example, right now on 10/26, looking at SPY the LastClose value is 108.08 (from 10/23) on but the priorDayOHLC close value is 108.15.Tags: None
-
PriorDayOHLC gets you the close as determined by the data presented on the chart. The close of the last bar on 10/23 is the value you will get. As you could imagine, session begin/end times heavily influences this. This could very well be different from the official settlement close price seen on daily bars.Josh P.NinjaTrader Customer Service
-
Thanks Josh, what is the data method to access the 'LastClose' value then? I tried using Bars.GetSessionBar(1).Close and it gives me back the the same as priorDayOHLC.
Originally posted by NinjaTrader_Josh View PostPriorDayOHLC gets you the close as determined by the data presented on the chart. The close of the last bar on 10/23 is the value you will get. As you could imagine, session begin/end times heavily influences this. This could very well be different from the official settlement close price seen on daily bars.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Mestor, Today, 03:15 AM
|
0 responses
1 view
0 likes
|
Last Post
by Mestor
Today, 03:15 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
11 responses
305 views
0 likes
|
Last Post
by z.franck
Today, 02:29 AM
|
||
Started by Padan, Today, 02:02 AM
|
0 responses
6 views
0 likes
|
Last Post
by Padan
Today, 02:02 AM
|
||
Started by bukowa, 11-09-2023, 06:07 PM
|
20 responses
407 views
0 likes
|
Last Post
by Adfra
Today, 01:36 AM
|
||
Started by yertle, Yesterday, 05:49 PM
|
2 responses
11 views
0 likes
|
Last Post
by yertle
Today, 12:12 AM
|
Comment