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