| Overall Statistics |
|
Total Orders 0 Average Win 0% Average Loss 0% Compounding Annual Return 0% Drawdown 0% Expectancy 0 Start Equity 100000 End Equity 100000 Net Profit 0% Sharpe Ratio 0 Sortino 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.574 Tracking Error 0.069 Treynor Ratio 0 Total Fees $0.00 Estimated Strategy Capacity $0 Lowest Capacity Asset Portfolio Turnover 0% Drawdown Recovery 0 |
# region imports
from AlgorithmImports import *
# endregion
class JumpingMagentaTermite(QCAlgorithm):
def initialize(self):
self.set_start_date(2025, 8, 10)
self.set_cash(100000)
self.custom = self.add_data(Test, "test", Resolution.DAILY).symbol
def on_data(self, data: Slice):
self.debug(data["test"].one)
self.debug(data["test"].two)
self.debug(data["test"].three)
class Test(PythonData):
# self.one = None
# self.two = None
# self.three = None
def get_source(self, config, date, is_live):
return SubscriptionDataSource("https://www.dropbox.com/scl/fi/42erendk9ax88htpsunnj/data-col-test.csv?rlkey=9cjflkq80534zb7e3kdse1cmf&dl=1", SubscriptionTransportMedium.REMOTE_FILE, FileFormat.CSV)
def reader(self, config, line, date, is_live):
if not (line.strip()):
return None
t = Test()
t.symbol = config.symbol
data = line.split(',')
t.time = datetime.strptime(data[0], "%m/%d/%Y")
t.end_time = t.time + timedelta(days=1)
t.value = data[1]
t["one"] = data[1]
t["two"] = data[2]
t["three"] = data[3]
return t