Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Futures and Currency symbols in an Enum

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

    Futures and Currency symbols in an Enum

    Hi All,

    For an indicator I'm writing I'm using an Enum that will hold all the tickers.
    Code:
    public enum Tickers
        {
            AA ,
            AXP,
            BA,
            BAC,
            CAT,
            CVX,
            DD,
            DIS,
            GE,
            HD,
            HPQ,
    }
    When I'm trying to add future contracts such as ES 12-10 and currency pairs $EURUSD I get error because the '$', '-' and number after space are not valid for the Enum.

    Do you have any suggestion how to solve this?

    Thanks in advance!

    #2
    freewind, I would then just use the MasterInstrument name without individual contract expiries - http://www.ninjatrader.com/support/h...trument_na.htm

    Additionally, parse should also do the trick - http://www.cambiaresearch.com/c4/1df...-Instance.aspx
    Last edited by NinjaTrader_Bertrand; 12-13-2010, 07:37 AM.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    160 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    308 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X