Overall Statistics
Total Trades
1
Average Win
0%
Average Loss
0%
Compounding Annual Return
0.135%
Drawdown
0.100%
Expectancy
0
Net Profit
0.001%
Sharpe Ratio
0.102
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
0.096
Beta
-10.378
Annual Standard Deviation
0.008
Annual Variance
0
Information Ratio
-0.95
Tracking Error
0.009
Treynor Ratio
0
Total Fees
$0.00
class TransdimensionalDynamicThrustAssembly(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2019, 5, 1)  # Set Start Date
        self.SetEndDate(2019, 5, 3) # Set End Date
        self.SetCash(1000) # Set Strategy Cash
            # request forex data
        self.AddForex("NZDUSD", Resolution.Minute, Market.Oanda)
            # set brokerage model
        self.SetBrokerageModel(BrokerageName.OandaBrokerage)
            # schedule an event to fire at a specific date/time
        self.Schedule.On(self.DateRules.On(2019, 5, 1), self.TimeRules.At(00, 45), self.SpecificTime)    

    def OnData(self, data):
        '''OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
            Arguments:
                data: Slice object keyed by symbol containing the stock data    '''
               
        
        # if not self.Portfolio.Invested:
        #    self.SetHoldings("SPY", 1)

    def SpecificTime(self):
        self.StopMarketOrder("NZDUSD", 50, 0.66770)
        self.StopMarketOrder("NZDUSD", -200, 0.66459)