Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

chart - data - CPU

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

    chart - data - CPU

    Hello,

    when doing a strategies like the "sample-multiinstruments" and I want to use eg a MACD of AUDUSD in my EURUSD-ninjascript (eg background color in EURUSD is green when MACD of AUDUSD is rising) I can do with no problem.

    But because of computer ressources I think its better to have the AUDUSD chart not opened.

    So, does the MACD in this example above "work" when AUDUSD chart is not open? Or what can I do for having this working in my NT-script? To add in the market-analyzer? Or is this same CPU intentsive as a chart?

    Thanks
    Tony

    #2
    Hello Tony,

    You do not have to have the added data series open in a separate chart.

    You can add this data series directly to your script by using the Add() method such as we do in the SampleMultiInstrument script:

    Code:
        Add("$AUDUSD", PeriodType.Minute, 1);
    This will add this data series to your script and can be used as an input series for your MACD indicator. This does not require this instrument to be open in a separate chart or market analyzer window.
    MatthewNinjaTrader Product Management

    Comment


      #3
      Thank you.

      Originally posted by NinjaTrader_Matthew View Post
      Hello Tony,

      You do not have to have the added data series open in a separate chart.

      You can add this data series directly to your script by using the Add() method such as we do in the SampleMultiInstrument script:

      Code:
          Add("$AUDUSD", PeriodType.Minute, 1);
      This will add this data series to your script and can be used as an input series for your MACD indicator. This does not require this instrument to be open in a separate chart or market analyzer window.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      61 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      40 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X