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 traderqz, Yesterday, 09:06 AM
      3 responses
      21 views
      0 likes
      Last Post NinjaTrader_ThomasC  
      Started by f.saeidi, Today, 10:19 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by kujista, Today, 06:23 AM
      5 responses
      17 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by traderqz, Today, 12:06 AM
      3 responses
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Working...
      X