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 inanazsocial, Today, 01:15 AM
      0 responses
      2 views
      0 likes
      Last Post inanazsocial  
      Started by trilliantrader, 04-18-2024, 08:16 AM
      5 responses
      22 views
      0 likes
      Last Post trilliantrader  
      Started by Davidtowleii, Today, 12:15 AM
      0 responses
      3 views
      0 likes
      Last Post Davidtowleii  
      Started by guillembm, Yesterday, 11:25 AM
      2 responses
      9 views
      0 likes
      Last Post guillembm  
      Started by junkone, 04-21-2024, 07:17 AM
      9 responses
      71 views
      0 likes
      Last Post jeronymite  
      Working...
      X