I've been struggling to begin to use the system. Can someone provide some assistance on the below code/possibly provide debugging techniques for the QyantConnect IDE?
namespace QuantConnect.Algorithm.CSharp
{
public class VentralTransdimensionalAntennaArray : QCAlgorithm
{
private AverageDirectionalIndex _adx = null;
private readonly Symbol _btc = QuantConnect.Symbol.Create("BTCUSD", SecurityType.Crypto, Market.GDAX);
public override void Initialize()
{
AddCrypto(this._btc, Resolution.Minute, Market.GDAX);
SetStartDate(2019, 4, 1); //Set Start Date
SetCash("USD", 100000, 1); //Set Strategy Cash
this._adx = ADX(this._btc, 14, Resolution.Minute);
}
/// OnData event is the primary entry point for your algorithm. Each new data point will be pumped in here.
/// Slice object keyed by symbol containing the stock data
public override void OnData(Slice data)
{
// if (!Portfolio.Invested)
// {
// SetHoldings(_spy, 1);
Debug("Purchased Stock");
Log(this._adx.ToDetailedString());
Log(this._adx.PositiveDirectionalIndex.ToString());
//}
}
}
}