![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Thank you for your note. Just to clarify what chart type are you running this on? I look forward to assisting you further.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
|
Hello Brett,
basically any, i.e. no special type. Minute, volume, renko... Regards, Daniel. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
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.
Brett
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Aug 2009
Posts: 51
Thanks: 10
Thanked 1 time in 1 post
|
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. |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Unfortunately this is also not able to bypass. Sorry .I will let development know of the demand.
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |