There is an excellent indicator that gets the Prior day Open High Low Close that is included with NinjaTrader.
You can access the prior day values from within your indicator or strategy by using the statements below.
PriorDayOHLC().PriorOpen[0] PriorDayOHLC().PriorHigh[0] PriorDayOHLC().PriorLow[0] PriorDayOHLC().PriorClose[0]
From the NinjaTrader control center window
Click Tools
Select Edit Ninjascript
Click Indicator
Open the PriorDayOHLC indicator.
Here is a reference on the usage of the PriorDayOHLC indicator
Please let me know if I may be of further assistance.
Leave a comment: