![]() |
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
|
|||||||
| Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Mar 2012
Posts: 11
Thanks: 0
Thanked 1 time in 1 post
|
Hi, I have custom renko bar type developed and I want to use it within the strategy, how do I add the object to the strategy if my bar type uses 2 parameters instead of just one.
I found this as an example on here (for MTF): // Add a 5 minute Bars object to the strategy Add(PeriodType.Minute, 5); // Add a 15 minute Bars object to the strategy Add(PeriodType.Minute, 15); I'm using Period.Type = Final2 for my custom renko bar type, how do i specify both of them? Will something like this work? Add(PeriodType.DynamicRenko, 2, 2); Add(PeriodType.DynamicRenko, 4, 4); Regards, snu Add(PeriodType. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
|
Hello,
Unfortunately it is not currently possible to add a custom bar type to a strategy. You would only be able to run a custom bar type as the primary input series. Please let me know if you have additional questions.
Matthew
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Bar Type Won't Load | jmflukeiii | General Programming | 12 | 04-09-2012 06:46 PM |
| Adding a database to a custom strategy | issicohen | Automated Trading | 2 | 06-15-2011 06:19 PM |
| Quick selection of a custom bar type | Ralph | General Programming | 1 | 03-25-2011 12:08 PM |
| quick timeframe shortcut for new custom bar type | SARdynamite | Miscellaneous Support | 2 | 07-04-2010 02:30 PM |
| Adding Chart Trader Custom Stop to Strategy | kcbnyc | Strategy Development | 1 | 06-13-2010 07:01 PM |