|08-30-2008, 02:39 PM||#1|
Join Date: Apr 2008
Thanked 0 times in 0 posts
How to share data series between strategy and indicator. need urgent help
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?
|08-30-2008, 02:59 PM||#2|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Thanked 106 times in 70 posts
Please see this reference sample: http://www.ninjatrader-support.com/v...ead.php?t=4991
NinjaTrader Customer Service
|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|