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.624
Tracking Error
0.128
Treynor Ratio
0
Total Fees
$0.00
using QuantConnect.Data.Auxiliary;

namespace QuantConnect.Algorithm.CSharp
{
    public class ModulatedQuantumEngine : QCAlgorithm
    {
        public override void Initialize()
        {
            SetStartDate(2020, 12, 30);
            SetEndDate(2021, 1, 5);
            SetCash(10000);
            
            AddEquity("ACOR", Resolution.Daily);
            UniverseSettings.DataNormalizationMode = DataNormalizationMode.SplitAdjusted;
            Schedule.On(DateRules.On(2021, 1, 4), TimeRules.At(16, 00), () => Debug("ACOR 1:6 split"));
        }

        public override void OnData(Slice data)
        {
        	var factorFile = FactorFile.Read("ACOR", "usa");
        	var dayfactor = factorFile.GetPriceScaleFactor(Time.Date.AddDays(-1)); // because logs appear next day
        	
        	var vol = Math.Round(Securities["ACOR"].Volume / 1000000, 2);
        	var close = Math.Round(Securities["ACOR"].Close, 2); 
            Debug($"ACOR vol. {vol}M, Close: {close}, Price factor: {dayfactor}");
        }
    }
}