Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi instrument future strategy

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

    Multi instrument future strategy

    I have developed a strategy that works on multiple instruments through the command Add("AXP",PeriodType.Day,1) for a stock and Add("ZR",PeriodType.Day,1) for a future.
    The strategy works fine for the stock, but I get the error message that the strategy has "called the Add() method with an invalid instrument. Either 'ZR' does not exist in the instrument manager or the specified exchange has not been configured"

    I do not understand the error message, as ZR does exist in the Instrument Manager and the strategy works fine if I load it on a ZR bar chart, so I assume Globex is configured OK.
    Can you explain how to resolve this issue?

    #2
    Originally posted by PaulZ View Post
    I have developed a strategy that works on multiple instruments through the command Add("AXP",PeriodType.Day,1) for a stock and Add("ZR",PeriodType.Day,1) for a future.
    The strategy works fine for the stock, but I get the error message that the strategy has "called the Add() method with an invalid instrument. Either 'ZR' does not exist in the instrument manager or the specified exchange has not been configured"

    I do not understand the error message, as ZR does exist in the Instrument Manager and the strategy works fine if I load it on a ZR bar chart, so I assume Globex is configured OK.
    Can you explain how to resolve this issue?
    I don't have ZR, but futures carry an expiration date of the contract.

    For the e-mini ES - you would do like this:

    Add ( "ES 09-15" , PeriodType.Day, 1)

    ZR probably is the same. Please note some futures are quarterly expiration (ES) and some are monthly (CL). So adjust accordingly.

    Comment


      #3
      Hello Paulz,

      Thanks for your post.

      Sledge is correct, futures instrument do require the month/year expiry.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      76 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      45 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      168 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      101 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      165 views
      2 likes
      Last Post CaptainJack  
      Working...
      X