Beispiel #1
0
 private void InitTransientFields()
 {
     baseSymbol = MarketEventSymbols.GetBaseSymbol(symbol);
     if (exchange == null)
     {
         exchange = CandleExchange.GetAttributeForSymbol(symbol);
     }
     if (price == null)
     {
         price = CandlePrice.GetAttributeForSymbol(symbol);
     }
     if (session == null)
     {
         session = CandleSession.GetAttributeForSymbol(symbol);
     }
     if (period == null)
     {
         period = CandlePeriod.GetAttributeForSymbol(symbol);
     }
     if (alignment == null)
     {
         alignment = CandleAlignment.GetAttributeForSymbol(symbol);
     }
     if (priceLevel == null)
     {
         priceLevel = CandlePriceLevel.GetAttributeForSymbol(symbol);
     }
 }
Beispiel #2
0
 private static string Normalize(string symbol)
 {
     symbol = CandlePrice.NormalizeAttributeForSymbol(symbol);
     symbol = CandleSession.NormalizeAttributeForSymbol(symbol);
     symbol = CandlePeriod.NormalizeAttributeForSymbol(symbol);
     symbol = CandleAlignment.NormalizeAttributeForSymbol(symbol);
     symbol = CandlePriceLevel.NormalizeAttributeForSymbol(symbol);
     return(symbol);
 }