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 12-12-2011, 02:27 PM   #1
Huskz
Junior Member
 
Join Date: Dec 2011
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Lightbulb Custom field in condition builder

Hello,

I am writing custom indicator. And my client asked if could he have a custom action in condition builder in wizard for making new strategy.

Is this possible?
Lets say that I need another version on "Bars ago" in my parameters list called "Bars ago2" that will return data based on some custom calculations.
Huskz is offline  
Reply With Quote
Old 12-12-2011, 02:50 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello Huskz,

Thanks for the post and welcome to the NinjaTrader forums! Unfortunately it is not possible to customize the actions available under the condition builder interface.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 12-12-2011, 02:55 PM   #3
Huskz
Junior Member
 
Join Date: Dec 2011
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

So solution is to make custom strategy?
Huskz is offline  
Reply With Quote
Old 12-12-2011, 03:23 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

A custom strategy is good if you want it to place orders. Any other action can use custom programming in an indicator. What type of custom action are you trying to create?
NinjaTrader_RyanM is offline  
Reply With Quote
Old 12-12-2011, 03:31 PM   #5
Huskz
Junior Member
 
Join Date: Dec 2011
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

Well I did indicator similar to Swing Indicator. I also display High and Low swings.
Customers idea is to get High or Low swing by their order of happening. Let say that in some period of time happened 4 high swings. Customer wants to get second high swing and use it in condition builder when planning a strategy.
Huskz is offline  
Reply With Quote
Old 12-12-2011, 03:50 PM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

OK, I see what you're looking for. The condition builder is a nice introduction to creating strategies, and is a front end to NinjaScript so that all the conditions you create in it can be viewed as code. Once you outgrow its capabilities, can click unlock code, and then would have the freedom to code any conditions you like.

You can work in code in either an indicator or a strategy. A strategy is used for order placement, and indicator code can be anything else.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 12-12-2011, 04:02 PM   #7
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,201
Thanks: 24
Thanked 1,228 times in 999 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by Huskz View Post
Well I did indicator similar to Swing Indicator. I also display High and Low swings.
Customers idea is to get High or Low swing by their order of happening. Let say that in some period of time happened 4 high swings. Customer wants to get second high swing and use it in condition builder when planning a strategy.
If the swing data that you are talking about is publicly exposed, then you should be able to access it in the Strategy Builder.
koganam is offline  
Reply With Quote
Old 12-13-2011, 01:58 AM   #8
Huskz
Junior Member
 
Join Date: Dec 2011
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanx guys for your help. I decided to build another custom indicator. this indicator will use my previous indicator and will calculate values accordingly
Huskz is offline  
Reply With Quote
Old 12-13-2011, 08:04 AM   #9
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

You're welcome, Huskz. Best of luck creating your new indicator and please let us know if we can be of further assistance.
NinjaTrader_RyanM is offline  
Reply With Quote
Reply

Tags
c #, condition builder, indicator, strategy

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
condition builder help jtrotter33 Strategy Development 7 12-06-2011 08:42 AM
Condition Builder msc400 Strategy Development 2 11-09-2011 06:00 AM
Condition builder help shambo Strategy Analyzer 3 02-18-2010 12:10 PM
How to use Condition builder. seokjoons Strategy Development 1 01-02-2010 12:50 PM
Condition Builder OUFan Strategy Development 6 12-19-2007 02:05 PM


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