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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    125 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    84 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    104 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    83 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X