NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 12-22-2008, 08:56 PM   #1
PabloC
Junior Member
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default OHLC Bars

Hello,

I have some questions related to bar prices.

1) Are Bars OHLC prices calculated by Ninjatrader using Provider's Ask and Bid Prices, or ther are directly got from Provider? (with provider meaning Broker/Data Feed)
2) How is "Last" Price Calculated?
3) Prices drown on Charts correspond to Ask, Bid or other prices?

Regards
Pablo
PabloC is offline  
Reply With Quote
Old 12-23-2008, 08:39 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

1) Are Bars OHLC prices calculated by Ninjatrader using Provider's Ask and Bid Prices, or ther are directly got from Provider? (with provider meaning Broker/Data Feed)
>>The OHLC is determined differently for different types of bars. Historical minute and larger bar OHLC's are provided by the data feed. However the OHLC's are built on the fly when storing minute and larger bar data in real time. With Tick bars the OHLC's are determined by NT using the user inputs. This link my help:
http://www.ninjatrader-support.com/H...ChartBars.html

2) How is "Last" Price Calculated?
>>It is not calculated it is fed by the data feed and it is the last price that the instrument was traded at.

3) Prices drown on Charts correspond to Ask, Bid or other prices?
>>They are built on the last traded price. Please see the link above.
NinjaTrader_Ben is offline  
Reply With Quote
Old 12-31-2008, 01:02 PM   #3
PabloC
Junior Member
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default

Ben, thanks four you answer. Regarding historical data, the concept is clear. However in real time, I still can't find out how OHLC bars are determined. I understand Ninjatrader calculates (for example) minute bars on the fly by using real time data, but I would like to know the calculation is made. Thanks
PabloC is offline  
Reply With Quote
Old 12-31-2008, 01:05 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

PabloC,

I am not sure what you mean "calculation". In real-time NinjaTrader just displays whatever information it is given by your data provider. On a 1 minute chart, when it receives a tick with a timestamp outside of that 1 minute, it knows the bar has closed and will solidify the OHLC for that bar and start a new one for the next 1 min.
NinjaTrader_Josh is offline  
Reply With Quote
Reply

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
HLC only as well as OHLC cherriman Suggestions And Feedback 3 10-10-2008 11:42 PM
changing ohlc bars chartlearner Charting 3 08-08-2008 12:15 PM
OHLC Dataseries? michaelbb Indicator Development 3 05-28-2008 09:45 AM
OHLC Dots pajusa Indicator Development 1 04-03-2008 01:42 AM
OHLC to HLC vtown Charting 1 11-17-2007 05:02 PM


All times are GMT -6. The time now is 09:49 PM.