Overall Statistics
Total Trades
1
Average Win
0%
Average Loss
0%
Compounding Annual Return
-3.563%
Drawdown
47.900%
Expectancy
0
Net Profit
-25.072%
Sharpe Ratio
-0.076
Loss Rate
0%
Win Rate
0%
Profit-Loss Ratio
0
Alpha
-0.066
Beta
2.631
Annual Standard Deviation
0.2
Annual Variance
0.04
Information Ratio
-0.173
Tracking Error
0.2
Treynor Ratio
-0.006
Total Fees
$0.00
using QuantConnect.Indicators; 

namespace QuantConnect
{
    public class BasicTemplateAlgorithm : QCAlgorithm
    {
    	string _ticker = "WHEATUSD"; 
        private Symbol _symbol;
        private Identity _price; 

        public override void Initialize()
        {
            SetStartDate(2011, 01, 01);
            SetEndDate(DateTime.Today);

            //_symbol = AddEquity(_ticker, Resolution.Daily).Symbol;
            _symbol = AddCfd(_ticker, Resolution.Minute, Market.Oanda).Symbol;
            
            _price = Identity(_symbol.Value);
            //PlotIndicator($"{_symbol.Value} Price", _price);
        }

        public override void OnData(Slice data)
        {
            if (!Portfolio.Invested)
            {
                MarketOrder(_symbol, 10000);
                Log($"Purchased Security {_symbol}");
            }
        }
    }
}