Overall Statistics
class ParticleQuantumProcessor(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2018, 10, 24)  # Set Start Date
        self.SetEndDate(2018, 10, 24)    # Set End Date
        
        self.SetCash(100000)             # Set Strategy Cash
        
        # Add EURUSD to the security universe
        self.AddForex("EURUSD", Resolution.Daily)


    def OnData(self, data):
        if not data.ContainsKey("EURUSD"): return
        
        # Buy 3000 units of EURUSD if portfolio not invested
        if not self.Portfolio.Invested:
            self.MarketOrder("EURUSD",3000)
        else:
            # Sell 1000 units using MarketOrder()
            self.MarketOrder("EURUSD",-1000)
            # Sell 1000 units using Sell()
            self.Sell("EURUSD",1000)