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 sjsj2732, Yesterday, 04:31 AM
      0 responses
      38 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      287 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      289 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      134 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      95 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X