PDA

View Full Version : OHLC Indicator Help - Cash Market


kidpwrtrader
12-15-2007, 03:40 AM
I am trying to get NJ to plot the previous day's cash market close @ 4pm, as well as the cash market open at 9:30 am. I must admit that I don't know how to work with ninjascript (just learning) so am wondering if anyone has an indicator for this. I did a search, found one, but I couldn't set it up myself.

Also, if you have pivot calculations off of the same levels, I would appreciate it as well.

It seems all the indicators assume you don't plot after hours data... which isn't the case for me.

NinjaTrader_Josh
12-15-2007, 02:18 PM
You can use this: http://www.ninjatrader-support.com/HelpGuideV6/PriorDayOHLC.html

Like what you have noticed though, you will need to set your chart settings to start at 9:30AM and end at 4:00PM.

If you do need the after hours plotted then you are going to have to program your own calculations. Basically take a time filter through the data and weed out any data that is not between 9:30 and 4. Store the open, store the close, calculate the high/low and store them too.

Here is a sample of how to implement a time filter. You will need to tweak it to your own specific case though. http://www.ninjatrader-support.com/vb/showthread.php?t=3226