コード例 #1
0
 public decimal AvgPrice(string sym, string account)
 {
     return(((account == "") || (account == null)) ? 0 : WMUtil.unpack(TLSend(TL2.AVGPRICE, sym + "," + account)));
 }
コード例 #2
0
 /// <summary>
 /// Returns average price for a position
 /// </summary>
 /// <param name="sym">The symbol</param>
 /// <returns>decimal representing average price</returns>
 public decimal AvgPrice(string sym)
 {
     return(WMUtil.unpack(TLSend(TL2.AVGPRICE, sym)));
 }
コード例 #3
0
 /// <summary>
 /// yesterday's closing price (day)
 /// </summary>
 /// <param name="sym">the symbol</param>
 /// <returns></returns>
 public decimal YestClose(string sym)
 {
     return(WMUtil.unpack(TLSend(TL2.YESTCLOSE, sym)));
 }
コード例 #4
0
 /// <summary>
 /// Gets opening price for this day
 /// </summary>
 /// <param name="sym">The symbol</param>
 /// <returns>decimal</returns>
 public decimal DayOpen(string sym)
 {
     return(WMUtil.unpack(TLSend(TL2.OPENPRICE, sym)));
 }
コード例 #5
0
 public decimal AccountClosedPL(string acct)
 {
     return(((acct == "") || (acct == null)) ? 0 : WMUtil.unpack(TLSend(TL2.ACCOUNTCLOSEDPL, acct)));
 }
コード例 #6
0
 /// <summary>
 /// Today's closing price (zero if still open)
 /// </summary>
 /// <param name="sym">The symbol</param>
 /// <returns></returns>
 public decimal DayClose(string sym)
 {
     return(WMUtil.unpack(TLSend(TL2.CLOSEPRICE, sym)));
 }
コード例 #7
0
 public decimal AccountClosedPL()
 {
     return(WMUtil.unpack(TLSend(TL2.ACCOUNTCLOSEDPL, "")));
 }
コード例 #8
0
 public decimal AccountOpenPL(string acct)
 {
     return(((acct == "") || (acct == null)) ? 0 : WMUtil.unpack(TLSend(TL2.ACCOUNTOPENPL, acct)));
 }
コード例 #9
0
 public decimal AccountOpenPL()
 {
     return(WMUtil.unpack(TLSend(TL2.ACCOUNTOPENPL, "")));
 }
コード例 #10
0
 /// <summary>
 /// Today's low
 /// </summary>
 /// <param name="sym">The symbol</param>
 /// <returns></returns>
 public decimal DayLow(string sym)
 {
     return(WMUtil.unpack(TLSend(TL2.NDAYLOW, sym)));
 }
コード例 #11
0
 /// <summary>
 /// Today's high
 /// </summary>
 /// <param name="sym">The symbol.</param>
 /// <returns></returns>
 public decimal DayHigh(string sym)
 {
     return(WMUtil.unpack(TLSend(TL2.NDAYHIGH, sym)));
 }