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 05-04-2007, 08:55 AM   #1
Folls
Senior Member
 
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
Post imported post

Hi,

I'm trying to add a second symbol to a custom indicator with the following format:

Add(string instrument, PeriodType periodType, int period)
I'm getting a compile error " No overload for method 'Add' takes '3' arguments."


How do I add the second symbol?


Thanks,
Folls

Folls is offline  
Reply With Quote
Old 05-04-2007, 09:22 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Post imported post

Indicators do not support multi-time frame and instruments. This is on our list for future enhancements.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-04-2007, 10:50 AM   #3
Folls
Senior Member
 
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
Post imported post

Can I plot, color a bar, or anything else visual from a strategy? If not, can I put a little arrow without submitting an order in a strategy? I am trying to think of some way to put a marking on one of the symbols.

Thanks,

Folls
Folls is offline  
Reply With Quote
Old 05-05-2007, 01:16 PM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

You can't create plots from a strategy but you can drive bar/back color and call draw methods.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-05-2007, 03:10 PM   #5
Folls
Senior Member
 
Join Date: Jan 2006
Location: Chicago, Illinois, USA
Posts: 126
Thanks: 0
Thanked 1 time in 1 post
Default

OK. That's great. That will work.

Folls
Folls is offline  
Reply With Quote
Old 05-05-2007, 03:56 PM   #6
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Default Just confirming

Quote:
Originally Posted by NinjaTrader_Ray View Post
Indicators do not support multi-time frame and instruments. This is on our list for future enhancements.

Ray
Ray


This means I can't access 1 minute chart indicator values from a 50 tick chart?

I think this is what you just said if I understand you correctly.

Cliff

PS: Nice Job on the switch from wowbb
ct is offline  
Reply With Quote
Old 05-05-2007, 06:21 PM   #7
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Correct.

For clarification, form a chart, you can't not access an indicator using another time frame.

Within a strategy, you can accessing indicators from other time frames.
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-07-2007, 02:06 AM   #8
ct
Senior Member
 
Join Date: Dec 2006
Location: Nelson, New Zealand
Posts: 358
Thanks: 1
Thanked 2 times in 2 posts
Default

Ray

Thanks. Sorry for being so thick headed. You said it loud and clear the first time.

I think I might try capturing and saving the value with a custom indicator on the one minute chart. Then I can retrieve the saved value in my existing custom indicator. It is for referencing a long span SMA so I do need to save the value except on barclose of a one minute chart.

Cliff
ct 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


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