However, with the AAPL 1 min chart open, when I run the same strategy via the strategy tab, there is no RSI plotted. To test further, I closed the AAPL 1min chart, run the strategy from strategy tab again, and I don't see AAPL 1 min chart open.
If my strategy contains indicator chart plotting, must I run the strategy from the chart? If not, how can I display the chart when run from strategy tab? Any additional function calls required?
Thanks for help
=================
protectedoverridevoid Initialize()
{
CalculateOnBarClose = true;
Add(RSI(RSIPeriod, RSISmooth));
SetStopLoss(CalculationMode.Ticks, StopLoss);
SetProfitTarget(CalculationMode.Ticks, ProfitTarget);
}
protectedoverridevoid OnBarUpdate()
{
if (CurrentBar < RSIPeriod) return;
if (CrossAbove(RSI(RSIPeriod, RSISmooth), 20,1)) EnterLong();
}
Comment