I want to make a strategy that always buys when the candle is green,
Here is my code, it compiles fine but, when I enabled it into the chart, it doesn't do anything.
protected override void OnBarUpdate() { if (Close[0]>Open[0]) { EnterLong(Convert.ToInt32(DefaultQuantity), ""); } }
Comment