I'm using a custom Datatype in a multi time frame indicator. The datatype is called BWTPrecisionRenko
There are two parameters, as input. to this datatype: The "bricksize" and the "reversal percentage"
On the primary bar object the following statement compiles cleanly.
_rcsFT_p = FeltonTrigger(100000,"dummy");
On the secondary bar object the following statement throws errors.
_rcsFT_s = FeltonTrigger(BarsArray[1].Period.Value2=125,100000,"dummy")
The developer says the above syntax is required to define the "reversal percentage" on the custom datatype.
The error messages indicate that the indicator, Felton Trigger, is "seeing" BarsArray as a parameter value.
If I code the following, it compiles cleanly.
_rcsFT_s = FeltonTrigger(BarsArray[1],100000,"dummy")
So the problem is definitely the "..Period.Value2=125".
Does that syntax look correct?
I'm including my code and the following two error messages.
The best overloaded method match for 'NinjaTrader.Indicator.Indicator.FeltonTrigger(Nin jaTrader.Data.IDataSeries, int, string)' has some invalid arguments
Argument '1': cannot convert from 'int' to 'NinjaTrader.Data.IDataSeries'
Comment