PDA

View Full Version : NT code for the last price


1reason
12-26-2007, 09:51 PM
I am trying to set up my first indicator with market analyzer. I want to compare the last price/tick to the high of yesterday.

would this be correct? Close[0] > High[1]

I dont want to wait until the end of the bar (as this will be daily bars) and I have not found what is the "last" price code for NT.

I also believe I need to set onbarclose to false and my understanding is that using something like "close[0]" will take less resources than "marketdata.last"

NinjaTrader_Josh
12-26-2007, 11:51 PM
If you are running your indicator on daily bars then yes Close[0] > High[1] will do current close price compared to yesterday's high. Setting CalculateOnBarClose = false will suffice in achieving what you want.

1reason
12-27-2007, 12:28 AM
Thanks for the quick answer !!!!