NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-09-2011, 01:37 PM   #1
dkrumholz
Member
 
Join Date: Aug 2009
Location: Princeton NJ
Posts: 83
Thanks: 10
Thanked 0 times in 0 posts
Default Current Price Not Equal to Close[0]

I have an indicator that runs on each tick (on bar close = false) that does several calculations based on the current price which I have coded as Close[0]. If I run the indicator I get a set of values based on Close[0] (the current price) but if I remove the indicator from the chart and re-add it, the calculations are now different because presumably Close[0] is the single closing price for the bar, not the current price at each tick. Is that true and is there a way around that?
dkrumholz is offline  
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can strategy enter/exit at current day's close price rnhoo ATM Strategies (Discretionary Trading) 13 02-11-2011 03:41 AM
Making Close[0] == current price dsraider Strategy Development 9 06-19-2010 07:08 AM
Possible Bug - trace execution price does not equal trade log price? Bluepoint Strategy Analyzer 3 02-13-2010 10:37 AM
Startegy involving previous day close price and current open price kirankksimon General Programming 3 03-11-2009 08:59 AM
how to sendmail() with current symbol and close price tbtrades Miscellaneous Support 3 10-17-2008 12:28 PM


All times are GMT -6. The time now is 10:07 PM.