AddDataSeries(Data.BarsPeriodType.Minute, 30);
here is the info in the unirenko bartype
Description = @"NT8 UniRenko";
Name = "UniRenko";
BarsPeriod = new BarsPeriod { BarsPeriodType = (BarsPeriodType)20, BarsPeriodTypeName = "UniRenko(20)", Value = 1 };
BuiltFrom = BarsPeriodType.Tick;
DaysToLoad = 3;
DefaultChartStyle = Gui.Chart.ChartStyleType.CandleStick;
IsIntraday = true;
public override void ApplyDefaultValue(BarsPeriod period)
{
period.BarsPeriodTypeName = "UniRenko";
period.BaseBarsPeriodValue = 10; //### Open Offset Value
period.Value =4; //### Trend Value
period.Value2 = 20; //### Reversal Value
}
// I tried this but I can't figure it out.
AddDataSeries(NinjaTrader.NinjaScript.BarsTypes.Un iRenko,004010020);
Comment