Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
PriorDayOHLC() not returning correct values
Collapse
X
-
Thanks Harry, I changed the template from default to NSE now its working perfectly.
-
The indicator calculates the prior day's OHLC based on the selected session template. Please make sure that you use the correct session template for the instrument: I suggest to open all charts with <instrument settings>, never use the templates 24/7 or 24/5, as they do not match the trading times of any instrument that I know.
Leave a comment:
-
prashanth09reddy, on which symbol / chart intervals are you working with this? i would be just the bars ago for that particular chart - it would not mean you request x days ago for this intra-day chart only indicator.
Leave a comment:
-
PriorDayOHLC() not returning correct values
Hi,
I am using below code to get open and close values for i days ago bar. But due to some reason it is returning only close values
open1 = PriorDayOHLC().PriorOpen[i];
close1 = PriorDayOHLC().PriorClose[i];
open2 = PriorDayOHLC().PriorOpen[i + 1];
close2 = PriorDayOHLC().PriorClose[i + 1];
But sometimes it is working perfectly. But most times it is returning wrong values. Can you please let me know what i am doing wrong
open1 30.11
close1 30.11
open2 31.97
close2 31.97Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
939 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
8 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
||
Started by rocketman7, Today, 01:00 AM
|
0 responses
4 views
0 likes
|
Last Post
by rocketman7
Today, 01:00 AM
|
||
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
28 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
33 views
0 likes
|
Last Post
by wzgy0920
Yesterday, 10:33 PM
|
Leave a comment: