I am trying to use a custom bar type "My Bar Type". This bar type is based on Renko and takes in two parameters for the reversal and the trend.
In the (State == State.Configure) condition I load the data this way:
AddDataSeries(new BarsPeriod() { BarsPeriodType = (BarsPeriodType)Custom.Logic.BarHelper.GetBarIdByN ame("My Bar Type"), Value = 14, Value2 = 2});
I wrote a method to get the Id of the Bar Type and I've confirmed with prints that it's using the right Bar Type.
I'm trying to just plot a simple EMA from this data series. The EMA that is getting printed is 100% wrong. I assume I'm using the AddDataSeries incorrectly.
Can someone help point out the error?
Thanks!

Comment