Profile Picture

Error after starting live system

Posted By Ossie68 9 Years Ago
Message
Posted Tuesday May 27 2008
RE succesfully executed an order on a trading system signal that appeared in the Open Positions pane as well in my TWS paper trade account. Later, I stopped the live system and when I tried to restart the live system some time later, I got the below error message. I don't see the open position in RE any longer but I do see it in TWS, however, I notice that the "API" page tab in TWS that was created once the order was filled has disappeared.

An exception of type System.InvalidOperationException was thrown.
There is an error in XML document (31, 34).
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
   at RightEdge.Common.PositionManager.LoadOpenPositions(String fileName)
   at RightEdge.LiveSystemwindow.x0fa035c1818e31d7(SystemDataCreationSettings xb6b3da7953a69f26, String xe125219852864557)
   at RightEdge.LiveSystemwindow.StartLiveSystem(xfb471916970b0c9e liveDataWindow, List`1 symbols, SystemDataCreationSettings settings, SystemRunInfo runInfo, RightEdgeCompiler compiler)
   at RightEdge.xf266856f631ec016.x7315d87aa80c241d()
   at RightEdge.xf266856f631ec016.xc44f2b7498b700f7(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
   at TD.SandBar.ToolbarItemBase.OnActivate()
   at TD.SandBar.ButtonItemBase.OnActivate()
   at TD.SandBar.ButtonItem.OnActivate()
   at TD.SandBar.ToolBar.OnItemRelease(ToolbarItemBase item, Point position)
   at TD.SandBar.ToolBar.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at TD.SandBar.ToolBar.WndProc(Message& m)
   at RightEdgeUI.CustomToolBar.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Inner Exception:
An exception of type System.Xml.XmlException was thrown.
Content cannot be converted to the type Double. Line 31, position 34.
   at System.Xml.XmlReader.ReadContentAsDouble()
   at System.Xml.XmlReader.ReadElementContentAsDouble()
   at RightEdge.Common.Price.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)
   at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
   at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read11_TradeInfo(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read14_PositionDataXml(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read19_PortfolioXml(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read20_PortfolioXml()

Inner Exception:
An exception of type System.FormatException was thrown.
Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
   at System.Xml.XmlConvert.ToDouble(String s)
   at System.Xml.XmlReader.ReadContentAsDouble() 


Edited: Wednesday May 28 2008 by Ossie68
Posted Tuesday May 27 2008
This looks like another locale issue, this time with loading the existing open positions when you start a live system.  The open positions are saved in a file called LiveOpenPositions.xml in your trading system folder.  It looks like the error is occurring on line 31, position 34 of the file.  If you can attach the file here that would be helpful.

To work around the error, you can either delete the file (in which case your trading system won't have any knowledge of existing open positions), or try editing the file to fix the format.

Thanks,
Daniel

dh
Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)Supreme Being (4,221 reputation)
Posted Tuesday May 27 2008
I have got the same error:

An exception of type System.InvalidOperationException was thrown.
Fehler im XML-Dokument (28,33).
   bei System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   bei System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
   bei System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
   bei RightEdge.Common.PositionManager.LoadOpenPositions(String fileName)
   bei RightEdge.LiveSystemwindow.x0fa035c1818e31d7(SystemDataCreationSettings xb6b3da7953a69f26, String xe125219852864557)
   bei RightEdge.LiveSystemwindow.StartLiveSystem(xfb471916970b0c9e liveDataWindow, List`1 symbols, SystemDataCreationSettings settings, SystemRunInfo runInfo, RightEdgeCompiler compiler)
   bei RightEdge.xf266856f631ec016.x7315d87aa80c241d()
   bei RightEdge.xf266856f631ec016.xc44f2b7498b700f7(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc)
   bei TD.SandBar.ToolbarItemBase.OnActivate()
   bei TD.SandBar.ButtonItemBase.OnActivate()
   bei TD.SandBar.ButtonItem.OnActivate()
   bei TD.SandBar.ToolBar.OnItemRelease(ToolbarItemBase item, Point position)
   bei TD.SandBar.ToolBar.OnMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei TD.SandBar.ToolBar.WndProc(Message& m)
   bei RightEdgeUI.CustomToolBar.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   bei System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Inner Exception:
An exception of type System.Xml.XmlException was thrown.
Der Inhalt kann nicht in den Typ Double konvertiert werden. Zeile 28, Position 33.
   bei System.Xml.XmlReader.ReadContentAsDouble()
   bei System.Xml.XmlReader.ReadElementContentAsDouble()
   bei RightEdge.Common.Price.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader reader)
   bei System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
   bei System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable)
   bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read11_TradeInfo(Boolean isNullable, Boolean checkType)
   bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read14_PositionDataXml(Boolean isNullable, Boolean checkType)
   bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read19_PortfolioXml(Boolean isNullable, Boolean checkType)
   bei Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPortfolioXml.Read20_PortfolioXml()

Inner Exception:
An exception of type System.FormatException was thrown.
Die Eingabezeichenfolge hat das falsche Format.
   bei System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   bei System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
   bei System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
   bei System.Xml.XmlConvert.ToDouble(String s)
   bei System.Xml.XmlReader.ReadContentAsDouble()

LiveOpenPositions.XML:

<?xml version="1.0" encoding="utf-8"?>
<PortfolioXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Positions>
    <PositionDataXml>
      <PosID>71</PosID>
      <Symbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>STT</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </Symbol>
      <PositionType>Long</PositionType>
      <Description>Overfill 100/600: SL</Description>
      <Trades>
        <TradeInfo>
          <FilledTime>2008-05-27T15:49:13</FilledTime>
          <TransactionType>Buy</TransactionType>
          <Price>
            <SymbolPrice>71,51</SymbolPrice>
            <AccountPrice>71,51</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>Overfill 100/600: SL</Description>
          <BuyingPowerChange>-7151.0000000000009</BuyingPowerChange>
          <MarginChange>0</MarginChange>
          <ShortedCashChange>0</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>23</OrderID>
        </TradeInfo>
      </Trades>
      <PendingOrders />
      <ProfitTarget>0</ProfitTarget>
      <ProfitTargetPrice>0</ProfitTargetPrice>
      <ProfitTargetType>None</ProfitTargetType>
      <StopLoss>0</StopLoss>
      <StopLossPrice>0</StopLossPrice>
      <StopLossType>None</StopLossType>
      <TrailingStop>0</TrailingStop>
      <TrailingStopType>None</TrailingStopType>
      <BarCountExit>-1</BarCountExit>
      <PendingClose>false</PendingClose>
      <IsPending>false</IsPending>
    </PositionDataXml>
    <PositionDataXml>
      <PosID>63</PosID>
      <Symbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>CEPH</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </Symbol>
      <PositionType>Short</PositionType>
      <Description>Short</Description>
      <Trades>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:11</FilledTime>
          <TransactionType>Short</TransactionType>
          <Price>
            <SymbolPrice>67,78</SymbolPrice>
            <AccountPrice>67,78</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Market</OrderType>
          <TradeType>OpenPosition</TradeType>
          <Commission>0</Commission>
          <Description>Short</Description>
          <BuyingPowerChange>-3389</BuyingPowerChange>
          <MarginChange>3389</MarginChange>
          <ShortedCashChange>6778</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>8</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:11</FilledTime>
          <TransactionType>Short</TransactionType>
          <Price>
            <SymbolPrice>67,78</SymbolPrice>
            <AccountPrice>67,78</AccountPrice>
          </Price>
          <Size>300</Size>
          <OrderType>Market</OrderType>
          <TradeType>OpenPosition</TradeType>
          <Commission>0</Commission>
          <Description>Short</Description>
          <BuyingPowerChange>-10167</BuyingPowerChange>
          <MarginChange>10167</MarginChange>
          <ShortedCashChange>20334</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>8</OrderID>
        </TradeInfo>
      </Trades>
      <PendingOrders>
        <TradeOrderXml>
          <OrderID>17</OrderID>
          <PosID>63</PosID>
          <TradeType>UserSubmitted</TradeType>
          <Description>SL</Description>
          <BarsValid>-1</BarsValid>
          <CancelPending>false</CancelPending>
        </TradeOrderXml>
        <TradeOrderXml>
          <OrderID>18</OrderID>
          <PosID>63</PosID>
          <TradeType>UserSubmitted</TradeType>
          <Description>SL</Description>
          <BarsValid>-1</BarsValid>
          <CancelPending>false</CancelPending>
        </TradeOrderXml>
      </PendingOrders>
      <ProfitTarget>0</ProfitTarget>
      <ProfitTargetPrice>0</ProfitTargetPrice>
      <ProfitTargetType>Percentage</ProfitTargetType>
      <StopLoss>0</StopLoss>
      <StopLossPrice>0</StopLossPrice>
      <StopLossType>Percentage</StopLossType>
      <TrailingStop>0</TrailingStop>
      <TrailingStopType>None</TrailingStopType>
      <BarCountExit>-1</BarCountExit>
      <PendingClose>false</PendingClose>
      <IsPending>false</IsPending>
    </PositionDataXml>
    <PositionDataXml>
      <PosID>64</PosID>
      <Symbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>COF</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </Symbol>
      <PositionType>Short</PositionType>
      <Description>Short</Description>
      <Trades>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:11</FilledTime>
          <TransactionType>Short</TransactionType>
          <Price>
            <SymbolPrice>48,51</SymbolPrice>
            <AccountPrice>48,51</AccountPrice>
          </Price>
          <Size>900</Size>
          <OrderType>Market</OrderType>
          <TradeType>OpenPosition</TradeType>
          <Commission>0</Commission>
          <Description>Short</Description>
          <BuyingPowerChange>-21829.5</BuyingPowerChange>
          <MarginChange>21829.5</MarginChange>
          <ShortedCashChange>43659</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>9</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:11</FilledTime>
          <TransactionType>Short</TransactionType>
          <Price>
            <SymbolPrice>48,51</SymbolPrice>
            <AccountPrice>48,51</AccountPrice>
          </Price>
          <Size>700</Size>
          <OrderType>Market</OrderType>
          <TradeType>OpenPosition</TradeType>
          <Commission>0</Commission>
          <Description>Short</Description>
          <BuyingPowerChange>-16978.5</BuyingPowerChange>
          <MarginChange>16978.5</MarginChange>
          <ShortedCashChange>33957</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>9</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:34</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,62</SymbolPrice>
            <AccountPrice>48,62</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2414.5</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>22</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:34</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,64</SymbolPrice>
            <AccountPrice>48,64</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2412.4999999999995</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:45:35</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,62</SymbolPrice>
            <AccountPrice>48,62</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2414.5</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>22</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:11</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,63</SymbolPrice>
            <AccountPrice>48,63</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2413.4999999999995</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:11</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,62</SymbolPrice>
            <AccountPrice>48,62</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2414.5</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:11</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,84</SymbolPrice>
            <AccountPrice>48,84</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2392.4999999999995</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:11</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,84</SymbolPrice>
            <AccountPrice>48,84</AccountPrice>
          </Price>
          <Size>200</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>4784.9999999999991</BuyingPowerChange>
          <MarginChange>-4851</MarginChange>
          <ShortedCashChange>-9702</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:11</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,84</SymbolPrice>
            <AccountPrice>48,84</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2392.4999999999995</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:12</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,84</SymbolPrice>
            <AccountPrice>48,84</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2392.4999999999995</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
        <TradeInfo>
          <FilledTime>2008-05-27T15:46:19</FilledTime>
          <TransactionType>Cover</TransactionType>
          <Price>
            <SymbolPrice>48,87</SymbolPrice>
            <AccountPrice>48,87</AccountPrice>
          </Price>
          <Size>100</Size>
          <OrderType>Stop</OrderType>
          <TradeType>UserSubmitted</TradeType>
          <Commission>0</Commission>
          <Description>SL</Description>
          <BuyingPowerChange>2389.5</BuyingPowerChange>
          <MarginChange>-2425.5</MarginChange>
          <ShortedCashChange>-4851</ShortedCashChange>
          <ProfitConversionRate>0</ProfitConversionRate>
          <OrderID>21</OrderID>
        </TradeInfo>
      </Trades>
      <PendingOrders />
      <ProfitTarget>0</ProfitTarget>
      <ProfitTargetPrice>0</ProfitTargetPrice>
      <ProfitTargetType>Percentage</ProfitTargetType>
      <StopLoss>0</StopLoss>
      <StopLossPrice>0</StopLossPrice>
      <StopLossType>Percentage</StopLossType>
      <TrailingStop>0</TrailingStop>
      <TrailingStopType>None</TrailingStopType>
      <BarCountExit>-1</BarCountExit>
      <PendingClose>false</PendingClose>
      <IsPending>false</IsPending>
    </PositionDataXml>
  </Positions>
  <PendingOrders>
    <BrokerOrder>
      <OrderSymbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>CEPH</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </OrderSymbol>
      <Shares>100</Shares>
      <LimitPrice>0</LimitPrice>
      <StopPrice>67.92</StopPrice>
      <SubmittedDate>2008-05-27T15:45:23.169125+02:00</SubmittedDate>
      <OrderType>Stop</OrderType>
      <TrailingStop>0</TrailingStop>
      <TrailingStopType>Percentage</TrailingStopType>
      <TransactionType>Cover</TransactionType>
      <OrderId>17</OrderId>
      <PositionID>63</PositionID>
      <OrderState>Submitted</OrderState>
      <GoodTillCanceled>true</GoodTillCanceled>
      <Fills />
    </BrokerOrder>
    <BrokerOrder>
      <OrderSymbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>CEPH</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </OrderSymbol>
      <Shares>400</Shares>
      <LimitPrice>0</LimitPrice>
      <StopPrice>67.92</StopPrice>
      <SubmittedDate>2008-05-27T15:45:23.200375+02:00</SubmittedDate>
      <OrderType>Stop</OrderType>
      <TrailingStop>0</TrailingStop>
      <TrailingStopType>Percentage</TrailingStopType>
      <TransactionType>Cover</TransactionType>
      <OrderId>18</OrderId>
      <PositionID>63</PositionID>
      <OrderState>Submitted</OrderState>
      <GoodTillCanceled>true</GoodTillCanceled>
      <Fills />
    </BrokerOrder>
  </PendingOrders>
  <BrokerPositions>
    <BrokerPosition>
      <Symbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>STT</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </Symbol>
      <Direction>Long</Direction>
      <Size>100</Size>
      <EntryPrice>
        <SymbolPrice>71,51</SymbolPrice>
        <AccountPrice>71,51</AccountPrice>
      </EntryPrice>
      <EntryDate>2008-05-27T15:49:13</EntryDate>
      <Margin>0</Margin>
      <ShortedCash>0</ShortedCash>
    </BrokerPosition>
    <BrokerPosition>
      <Symbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>CEPH</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </Symbol>
      <Direction>Short</Direction>
      <Size>400</Size>
      <EntryPrice>
        <SymbolPrice>67,78</SymbolPrice>
        <AccountPrice>67,78</AccountPrice>
      </EntryPrice>
      <EntryDate>2008-05-27T15:45:11</EntryDate>
      <Margin>10167</Margin>
      <ShortedCash>20334</ShortedCash>
    </BrokerPosition>
    <BrokerPosition>
      <Symbol>
        <CurrencyType>USD</CurrencyType>
        <StrikePrice>0</StrikePrice>
        <ExpirationDate>0001-01-01T00:00:00</ExpirationDate>
        <ContractType>NoContract</ContractType>
        <Name>COF</Name>
        <Exchange />
        <SymbolInformation>
          <Margin>0</Margin>
          <TickSize>0</TickSize>
          <ContractSize>0</ContractSize>
          <DecimalPlaces>2</DecimalPlaces>
        </SymbolInformation>
        <AssetClass>Stock</AssetClass>
      </Symbol>
      <Direction>Short</Direction>
      <Size>500</Size>
      <EntryPrice>
        <SymbolPrice>48,51</SymbolPrice>
        <AccountPrice>48,51</AccountPrice>
      </EntryPrice>
      <EntryDate>2008-05-27T15:45:11</EntryDate>
      <Margin>-2425.5</Margin>
      <ShortedCash>-4851</ShortedCash>
    </BrokerPosition>
  </BrokerPositions>
</PortfolioXml>

Posted Tuesday May 27 2008
This is another issue with number formats and internationalization.  Attached is an updated version of Common.dll.  Please unzip into your RightEdge installation folder and also copy to your plugins folder.

This update should correct the problem with writing the LiveOpenPositions.xml file, but you will need to manually fix the existing file (or just delete it if you don't want RightEdge to keep track of those positions).  To fix the file find all the lines with SymbolPrice or AccountPrice in them, and change the numbers so that the decimal separator is a period instead of a comma.

I'm sorry for the inconvenience.  Please let us know if this fixes the problem.

Thanks,
Daniel


Attachments
Common.zip (325 views, 486.00 KB)
Posted Tuesday May 27 2008
The problem is fixed now. Thanks.  Smile


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems