public decimal AvgPrice(string sym, string account) { return(((account == "") || (account == null)) ? 0 : WMUtil.unpack(TLSend(TL2.AVGPRICE, sym + "," + account))); }
/// <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))); }
/// <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))); }
/// <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))); }
public decimal AccountClosedPL(string acct) { return(((acct == "") || (acct == null)) ? 0 : WMUtil.unpack(TLSend(TL2.ACCOUNTCLOSEDPL, acct))); }
/// <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))); }
public decimal AccountClosedPL() { return(WMUtil.unpack(TLSend(TL2.ACCOUNTCLOSEDPL, ""))); }
public decimal AccountOpenPL(string acct) { return(((acct == "") || (acct == null)) ? 0 : WMUtil.unpack(TLSend(TL2.ACCOUNTOPENPL, acct))); }
public decimal AccountOpenPL() { return(WMUtil.unpack(TLSend(TL2.ACCOUNTOPENPL, ""))); }
/// <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))); }
/// <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))); }