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-08-2011, 01:22 PM   #1
araagr
Junior Member
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Make a new type of frame

Please, explain how I can make a new type of frame. Like the range or the renco but with my logic. Is it must be based on existing one?
araagr is offline  
Reply With Quote
Old 12-08-2011, 01:41 PM   #2
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,499
Thanks: 109
Thanked 291 times in 280 posts
Default

Hello,

Thanks for the forum post and welcome to the NInjaTrader forums.

Although this is possible to do in NinjaTrader it is unfortunately not supported. This requires advanced programming and to be able to edit code without documentation or examples to achieve this.

If you are able to do this you can take a look at the My Documents->NinjaTrader 7->bin->custom->type->bartype.cs file. It is there were we have our already pre built bar types. You can use this as an example and simply change the logic to do what you need.

You would need to recompile any indicator to force everything to compile after making a change in this document.

Let me know if I can be of further assistance.
NinjaTrader_Brett is offline  
Reply With Quote
Old 12-08-2011, 02:03 PM   #3
araagr
Junior Member
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default

Thank you, Brett. This is what I looking for. Lack of documentation makes the task more difficult but that's not a problem.
araagr is offline  
Reply With Quote
Reply

Tags
custom, frame, type

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
This does not make sense to me bob100 ATM Strategies (Discretionary Trading) 5 01-24-2011 07:35 AM
If other than Input[barsAgo] is used then make it impossible to change the price type Arpad Indicator Development 7 11-05-2010 01:19 PM
How do I make more than 3 cents? KBJ Strategy Analyzer 4 05-02-2009 12:34 PM
Minute Time Frame Indicators in a TickTime Frame strategy Nathamus General Programming 5 04-10-2007 02:41 AM
Would make NTS the best ever..... jmi88 Suggestions And Feedback 3 10-28-2006 06:13 AM


All times are GMT -6. The time now is 12:45 AM.