Overall Statistics |
Total Trades 2 Average Win 0% Average Loss -26.14% Compounding Annual Return -99.980% Drawdown 30.300% Expectancy -1 Net Profit -26.140% Sharpe Ratio -4.583 Loss Rate 100% Win Rate 0% Profit-Loss Ratio 0 Alpha -7.529 Beta 136.413 Annual Standard Deviation 1.198 Annual Variance 1.435 Information Ratio -4.595 Tracking Error 1.198 Treynor Ratio -0.04 Total Fees $0.00 |
namespace QuantConnect.Algorithm.CSharp { /// <summary> /// Basic template algorithm simply initializes the date range and cash. This is a skeleton /// framework you can use for designing an algorithm. /// </summary> public class BasicTemplateAlgorithm : QCAlgorithm { //private Symbol _spy = QuantConnect.Symbol.Create("KH33HKD", SecurityType.Cfd, Market.Oanda); /// <summary> /// Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized. /// </summary> public override void Initialize() { SetStartDate(2012, 9, 28); //Set Start Date SetEndDate(2012, 10, 10); //Set End Date SetCash(100000); //Set Strategy Cash // Find more symbols here: http://quantconnect.com/data // Forex, CFD, Equities Resolutions: Tick, Second, Minute, Hour, Daily. // Futures Resolution: Tick, Second, Minute // Options Resolution: Minute Only. AddSecurity(SecurityType.Cfd,"US2000USD", Resolution.Minute, Market.Oanda, true, 100, false); // There are other assets with similar methods. See "Selecting Options" etc for more details. // AddFuture, AddForex, AddCfd, AddOption Schedule.On(DateRules.On(2012,10,4),TimeRules.At(1, 0), () => { Log("marketorder"); var t = MarketOrder("US2000USD", 1); // StopMarketOrder("HK33HKD", -45,22837.3m); Log(string.Format("{0}",Time)); }); } /// <summary> /// OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here. /// </summary> /// <param name="data">Slice object keyed by symbol containing the stock data</param> public override void OnData(Slice data) { } } }