say i have a primary series (1 minute candles) taking entries if it makes 2 green bars, but only if the most recently closed candle of a higher series (60 minute candles) closed green, like this:
}
else if (State == State.Configure)
{
AddDataSeries(Data.BarsPeriodType.Minute, 60);
SetProfitTarget("", CalculationMode.Ticks, 50);
SetStopLoss("", CalculationMode.Ticks, 50, false);
}
}
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1
|| CurrentBars[1] < 1)
return;
// Set 1
if ((Close[0] > Open[0])
&& (Closes[1][1] > Opens[1][1])
&& (Close[1] > Open[1]))
{
EnterLongLimit(Convert.ToInt32(DefaultQuantity), Median[0], "");
}
but i want that 60 minute higher time frame series to be heiken ashi instead of standard candles, do i write it like this instead:?
AddHeikenAshi(Data.BarsPeriodType.Minute, 60);
or is that missing the add data series instruction and won't work?

Comment