|07-15-2009, 04:24 AM||#1|
Join Date: Apr 2008
Thanked 3 times in 3 posts
I've just noticed that Closes[-1] works just fine in Historical, returning the true closing price for a barsarray that has not yet experienced its OnBarUpdate().
For example, in BarsInProgress==0, Closes actually returns the value of the bar before the current one in BarsInProgress==0. This is documented and expected.
Yet Closes[-1] works just great! Yahoo! I wish I had known that several thousand lines of code ago.
My question is - is it safe to use?
|07-15-2009, 05:01 AM||#2|
Join Date: Mar 2005
Location: Bamberg, Germany
Thanked 6 times in 6 posts
>> My question is - is it safe to use?
No it's not. It's definitely outside the specifications and thus may or may not work.
NinjaTrader Customer Service
|Thread||Thread Starter||Forum||Replies||Last Post|
|Order exiting at market after bar closes||rscowboy1||Strategy Development||2||05-13-2009 01:33 PM|
|IB Auto closes at Night||market_student||Connecting||3||03-25-2009 02:43 PM|
|ATM strategies execute after market closes??||bridenour||ATM Strategies (Discretionary Trading)||4||01-21-2009 04:56 PM|
|No money going in Realized P&L when trade firstname.lastname@example.org||Historical NinjaTrader 6.5 Beta Threads||12||11-12-2007 07:01 AM|
|Strategies stop after position closes||ashish||Automated Trading||3||11-04-2007 01:24 AM|