Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Real-Time Indicators within a Strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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, 06:55 PM.

    #2
    Prospectus, unfortunately this is not supported directly to access those. As a workaround you may look into saving realtime generated values to txt files from the strategy so you can access this info then when restarting the strategy...

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    52 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    142 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    160 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    96 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    275 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X