Overall Statistics
import datetime
class GetOpenOrdersAlgorithm(QCAlgorithm):
    def Initialize(self):
        self.SetStartDate(2014, 10, 15) 
        self.SetEndDate(2014, 10, 15)
        self.SetCash(100000)
        self.symbol = "EURUSD"
        self.AddForex(self.symbol, Resolution.Minute, Market.Oanda)
        self.openLimitOrders = []

    def OnData(self, data):
        open_orders = self.Transactions.GetOpenOrders(self.symbol)
        self.Debug(str(len(open_orders)))
        if len(open_orders) == 0:
            self.LimitOrder(self.symbol, 2000, float(self.Securities[self.symbol].Price)*0.998)