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

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-21-2009, 06:37 PM   #1
Prospectus
Junior Member
 
Join Date: May 2009
Location: DFW
Posts: 20
Thanks: 0
Thanked 0 times in 0 posts
Default Accessing Real-Time Indicators within a Strategy

I am writing an automated trading strategy to take signals from 3rd party indicators. These indicators do not work on historical data, only real-time. Typically, the user starts a chart in the pre-market and watches all day.

Now the problem: I reference the indicators in my strategy, create a new instance and use it for calculations. But if the strategy is stopped and restarted, it loses the saved indicator values that are still displayed on the chart, causing the strategy to take trades that are different than what the chart shows.

The question: Can I access the values that are being plotted by those indicators directly, without creating a parallel instance of the indicator inside the strategy? That way I could access the saved "real-time" data on strategy restart...
Last edited by Prospectus; 10-21-2009 at 06:55 PM.
Prospectus is offline  
Reply With Quote
 

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
Strategy Analyzer vs. Real Time eleven Strategy Development 4 07-12-2009 10:06 AM
Multi-time frame strategy - Longer-term real-time calculations Shansen Strategy Development 1 04-19-2009 06:36 AM
Changing Indicators in Real Time Agamenon Strategy Development 1 11-21-2007 06:35 AM
Strategy in real time problem nybangali Strategy Development 9 08-22-2007 12:54 AM
Accessing High value in a multi time frame strategy PrTester Strategy Development 4 05-02-2007 01:13 AM


All times are GMT -6. The time now is 04:45 AM.