NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

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

Reply
 
Thread Tools Display Modes
Old 10-07-2011, 08:06 AM   #1
Eubie
Member
 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
Default Creating Persistent Indicator

Hello support,

I have a tickCount indicator that gives information on the number of trades that happenned on the given bar. It is basically the same as is posted here in the Reference Samples section. I run it on market replay, and it shows data - no problem.

Now say I want to add a new indicator to the chart, which uses the values of this tickCount. As this new indicator did not go through replay, it needs "historical" values of tickCount (i.e. of previous bars). And my question is, how can I make past values of tickCount available for other indicators to use? The main question here is mostly how I can store these values so that the new indicator can access them.

Best regards,
Daniel.
Eubie is offline  
Reply With Quote
Old 10-07-2011, 08:15 AM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,


Thank you for your note.


Just to clarify what chart type are you running this on?

I look forward to assisting you further.
NinjaTrader_Brett is offline  
Reply With Quote
Old 10-07-2011, 08:35 AM   #3
Eubie
Member
 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
Default

Hello Brett,

basically any, i.e. no special type. Minute, volume, renko...

Regards,
Daniel.
Eubie is offline  
Reply With Quote
Old 10-07-2011, 08:59 AM   #4
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

I see, understood.

If you ran on a tick chart it would be possible to constitute number of ticks in a bar however each bar would be the same.

In other bar types this is not possible as you have found, this requires a live data feed to count these ticks.

Unfortunately this would not be possible with default NinjaTrader settings. There is a multi time frame strategy programming technique you could use to bring in a 1 tick series and then count the tick data. However this would bring in tick data which is very data intensive.

http://www.ninjatrader.com/support/f...ead.php?t=6652

You would use the above sample and then load in a 1 tick series and then use a counter variable to count the ticks in the secondary series. This is a considerable jump in programming experience required to do this however.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 10-07-2011, 09:08 AM   #5
Eubie
Member
 
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
Default

I see Brett, thank you very much! It seems a bit difficult, so I guess I will plan my indicators before running replay.

A last quick question.. is there any way I can use more than 10 panels on a chart? I happen to need exactly... eleven.

Thank you for a fast reply!
Daniel.
Eubie is offline  
Reply With Quote
Old 10-07-2011, 09:12 AM   #6
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Unfortunately this is also not able to bypass. Sorry .

I will let development know of the demand.
NinjaTrader_Brett 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
Persistent Forex position astrolobe Version 7 Beta General Questions & Bug Reports 5 11-01-2010 05:57 AM
Creating an indicator d.allen101 Indicator Development 11 09-08-2010 04:57 AM
how do i go about creating this indicator? kaywai Indicator Development 4 11-30-2009 09:05 PM
Help with Creating Indicator Sakkers Indicator Development 4 02-22-2009 06:26 PM
Problem creating Indicator nicko9 Indicator Development 2 02-22-2007 01:52 AM


All times are GMT -6. The time now is 05:32 PM.