Ejemplo n.º 1
0
 /// <summary>
 /// Event Handler for Nifty Data Events: These Nifty objects are created from our 
 /// "Nifty" type below and fired into this event handler.
 /// </summary>
 /// <param name="data">One(1) Nifty Object, streamed into our algorithm synchronised in time with our other data streams</param>
 public void OnData(DollarRupee data)
 {
     today = new CorrelationPair(data.Time);
     today.CurrencyPrice = Convert.ToDouble(data.Close);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Event Handler for Nifty Data Events: These Nifty objects are created from our
 /// "Nifty" type below and fired into this event handler.
 /// </summary>
 /// <param name="data">One(1) Nifty Object, streamed into our algorithm synchronised in time with our other data streams</param>
 public void OnData(DollarRupee data)
 {
     today = new CorrelationPair(data.Time);
     today.CurrencyPrice = Convert.ToDouble(data.Close);
 }