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 > Application Technical Support > Automated Trading

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.

Reply
 
Thread Tools Display Modes
Old 05-25-2012, 10:45 AM   #1
snusnufreak
Junior Member
 
Join Date: Mar 2012
Posts: 11
Thanks: 0
Thanked 1 time in 1 post
Default Adding Multiple TF Custom Bar Type to the strategy

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.
snusnufreak is offline  
Reply With Quote
Old 05-25-2012, 12:04 PM   #2
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

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.
NinjaTrader_Matthew 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
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


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