Overall Statistics
Total Trades
0
Average Win
0%
Average Loss
0%
Compounding Annual Return
0%
Drawdown
0%
Expectancy
0
Net Profit
0%
Sharpe Ratio
0
Probabilistic Sharpe Ratio
0%
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
0
Beta
0
Annual Standard Deviation
0
Annual Variance
0
Information Ratio
-0.109
Tracking Error
0.176
Treynor Ratio
0
Total Fees
$0.00
Estimated Strategy Capacity
$0
Lowest Capacity Asset
Portfolio Turnover
0%
# region imports
from AlgorithmImports import *
# endregion

class MuscularRedGull(QCAlgorithm):

    def Initialize(self):
        self.SetStartDate(2022, 2, 2)
        self.SetCash(100000)
        self.AddEquity("SPY", Resolution.Minute)
        self.AddEquity("BND", Resolution.Minute)
        self.AddEquity("AAPL", Resolution.Minute)
        self.AddCrypto("BTCUSD", Resolution.Minute)

    def OnData(self, data: Slice):
        self.Debug("Sending email...")
        csv="Position Group,Fund,Fund Allocation,Prime Broker,Prime Alocation,Account Type,Symbol,Side,Qty,Order Type,Limit Px,Currency,Trader,Owner,TIF,Manual Fill,Executing Broker,Algo,Start Time,End Time,Pct Vol,Duration,Algo Template,Automation,Notes,Instructions,Trade Date,Settle Date,Skip Locate,sendToEms\r\n"
       
        subject = "File Attachment Test"
        emails = [ "jaredbroad@gmail.com", "gustavo@gaviles.com"]
        for email in emails:
            self.Notify.Email(email, subject, "Trade file attached", csv, { "filename": "trades.csv" })