// flat file output methods
        public string ToFlatFileStringAllData()
        {
            const string  del     = ", ";
            StringBuilder dataStr = new StringBuilder();

            // output string
            dataStr.Append(_securityObj.Name);
            dataStr.Append(del); dataStr.Append(TimeStamp.ToString("yyyy/MM/dd hh:mm:ss.ffffff"));
            dataStr.Append(del); dataStr.Append(BinCnt.ToString());
            dataStr.Append(del); dataStr.Append(StateType.ToString());
            dataStr.Append(del); dataStr.Append(Bid.ToString());
            dataStr.Append(del); dataStr.Append(BidVol.ToString());
            dataStr.Append(del); dataStr.Append(BidOpen.ToString());
            dataStr.Append(del); dataStr.Append(BidVolOpen.ToString());
            dataStr.Append(del); dataStr.Append(BidVolChg.ToString());
            dataStr.Append(del); dataStr.Append(BidVolChgSum.ToString());
            dataStr.Append(del); dataStr.Append(BidVolChgCnt.ToString());
            dataStr.Append(del); dataStr.Append(VolAtBid.ToString());
            dataStr.Append(del); dataStr.Append(TrdCntBid.ToString());
            dataStr.Append(del); dataStr.Append(Ask.ToString());
            dataStr.Append(del); dataStr.Append(AskVol.ToString());
            dataStr.Append(del); dataStr.Append(AskOpen.ToString());
            dataStr.Append(del); dataStr.Append(AskVolOpen.ToString());
            dataStr.Append(del); dataStr.Append(AskVolChg.ToString());
            dataStr.Append(del); dataStr.Append(AskVolChgSum.ToString());
            dataStr.Append(del); dataStr.Append(AskVolChgCnt.ToString());
            dataStr.Append(del); dataStr.Append(VolAtAsk.ToString());
            dataStr.Append(del); dataStr.Append(TrdCntAsk.ToString());
            dataStr.Append(del); dataStr.Append(Mid.ToString());
            dataStr.Append(del); dataStr.Append(MidOpen.ToString());
            dataStr.Append(del); dataStr.Append(MidScaled.ToString("#.0000"));
            dataStr.Append(del); dataStr.Append(MidScaledOpen.ToString("#.0000"));
            dataStr.Append(del); dataStr.Append(LastTrdPrice.ToString());
            dataStr.Append(del); dataStr.Append(LastPriceOpn.ToString());
            dataStr.Append(del); dataStr.Append(LastTrdSize.ToString());

            return(dataStr.ToString());
        }
        public string ToStringAllData()
        {
            string dataStr = _securityObj.Name +
                             " " + TimeStamp.ToLongTimeString() +
                             "  Type " + StateType.ToString() +
                             //"  Bid " + Bid.ToString() +
                             //"  BidOpn " + BidOpen.ToString() +
                             //"  BidVol " + BidVol.ToString() +
                             //"  BidVolOpen " + BidVolOpen.ToString() +
                             //"  BidVolChg " + BidVolChg.ToString() +
                             //"  BidVolChgSum " + BidVolChgSum.ToString() +
                             "  BidVolChgCnt " + BidVolChgCnt.ToString() +
                             //"  VolAtBid " + VolAtBid.ToString() +
                             //"  TrdCntBid " + TrdCntBid.ToString() +
                             //"  Ask " + Ask.ToString() +
                             //"  AskOpen " + AskOpen.ToString() +
                             //"  AskVol " + AskVol.ToString() +
                             //"  AskVolOpen " + AskVolOpen.ToString() +
                             //"  AskVolChg " + AskVolChg.ToString() +
                             //"  AskVolChgSum " + AskVolChgSum.ToString() +
                             "  AskVolChgCnt " + AskVolChgCnt.ToString() +
                             //"  VolAtAsk " + VolAtAsk.ToString() +
                             //"  TrdCntAsk  " + TrdCntAsk.ToString() +
                             "  Mid " + Mid.ToString() +
                             //"  MidOpn " + MidOpen.ToString() +
                             //"  MidScaled " + MidScaled.ToString("#.00") +
                             //"  MidScaledOpen " + MidScaledOpen.ToString("#.00") +
                             //"  LastPrice " + LastTrdPrice.ToString() +
                             //"  LastPriceOpn " + LastPriceOpn.ToString() +
                             "  LastSize " + LastTrdSize.ToString();

            // dataStr = SecurityObj.Name + Environment.NewLine + " {" + Environment.NewLine +
            //    "  LastSize " + LastTrdSize.ToString() + Environment.NewLine + " }";

            return(dataStr);
        }