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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    153 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    89 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    133 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    128 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X