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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      647 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      573 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X