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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 07-13-2009, 08:44 AM   #1
blarouche
Senior Member
 
Join Date: Apr 2009
Posts: 198
Thanks: 0
Thanked 0 times in 0 posts
Default Can I refer an indicator variables in a strategy ?

Hi,

I am transferring indicators and strategies from TradeStation to Ninja. I was just woudering If I could refer to an indicator variable from a strategy in Ninja.

With TradeStation I had to use collections to send variables from indicator to strategy because they can't talk together... but Ninja is C# with object oriented programming so I was woudering if there was a better way I could just get variables from indicators to strategies without have to transfer these data to a collection type.


Thanks very much
blarouche is offline  
Reply With Quote
Old 07-13-2009, 08:53 AM   #2
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

Blarouche, I just helped someone with this very topic. I'll dig up the link for you.
NinjaTrader_Austin is offline  
Reply With Quote
Old 07-13-2009, 08:55 AM   #3
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

Here is a link to a thread titled Accessing indicator variable from a strategy. It covers exactly what you're trying to do.
NinjaTrader_Austin is offline  
Reply With Quote
Old 07-13-2009, 09:09 AM   #4
blarouche
Senior Member
 
Join Date: Apr 2009
Posts: 198
Thanks: 0
Thanked 0 times in 0 posts
Default Thanks

Thank you very much Austin
blarouche 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
Can't pass BoolSeries variables in Indicator to Strategy tjendra Strategy Development 20 03-31-2010 04:48 PM
Parsing variables from one indicator to another Shansen Indicator Development 42 03-31-2010 05:32 AM
Refer to instrument in indicator eleven Indicator Development 2 06-19-2009 10:58 AM
Strategy: Using User Variables in the Strategy Wizard NinjaTrader_Josh Reference Samples 0 03-23-2009 09:41 AM
Can I access Public Indicator Variables from Strategy rrv1980 Strategy Development 13 08-24-2008 05:31 PM


All times are GMT -6. The time now is 07:45 PM.