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 cls71, Today, 04:45 AM
      0 responses
      1 view
      0 likes
      Last Post cls71
      by cls71
       
      Started by mjairg, 07-20-2023, 11:57 PM
      3 responses
      213 views
      1 like
      Last Post PaulMohn  
      Started by TheWhiteDragon, 01-21-2019, 12:44 PM
      4 responses
      544 views
      0 likes
      Last Post PaulMohn  
      Started by GLFX005, Today, 03:23 AM
      0 responses
      3 views
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      12 views
      0 likes
      Last Post XXtrader  
      Working...
      X