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 > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 08-30-2008, 02:39 PM   #1
maxima
Senior Member
 
Join Date: Apr 2008
Posts: 298
Thanks: 4
Thanked 0 times in 0 posts
Default How to share data series between strategy and indicator. need urgent help

Hi

it has to be something to sync/share data series in strategy and indicator.

What I am trying to do is to plot a spread between 2 securities. I know it will be coming in next version but I need it now.

Hence I have series of doubles representing spread within strategy.

Now I need to plot it somehow. I added custom indicator into the strategy hoping that I can pass values from strategy into that indicator using public methods and variables.

However it appeared that Ninja StrategyAnalyzer works as following:
1. instantiate strategy
2. instantiate indicator twice
3. run strategy to the end
4. instantiate indicator again

hence all data I have set during running the strategy lost when indicator has been instantiated.

How can I manually sync data between strategy and indicator?
maxima is offline  
Reply With Quote
Old 08-30-2008, 02:59 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Hi maxima,

Please see this reference sample: http://www.ninjatrader-support.com/v...ead.php?t=4991
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-30-2008, 04:10 PM   #3
maxima
Senior Member
 
Join Date: Apr 2008
Posts: 298
Thanks: 4
Thanked 0 times in 0 posts
Default

Thank you.
maxima 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
invalid Time if Input series is passed to Indicator EvolveK Indicator Development 2 08-12-2008 12:02 PM
Input Series For Indicator CraigC Indicator Development 7 06-28-2008 03:58 AM
How to access daily data series from an indicator running on intraday charts? clearpicks Indicator Development 3 04-21-2008 06:57 AM
Set new strategy data series option from within strategy skynetman Strategy Development 1 04-11-2008 02:10 PM
Update frequency of multiple data series in a Strategy ThePatientOne Strategy Development 1 05-02-2007 10:05 AM


All times are GMT -6. The time now is 10:29 AM.