I am trying to make an EMA angle indicator but for some reason I get the following error message when I try run the code (I made it into a strategy to try and print off the errors)
**NT** Error on getting/setting property 'Time' for strategy 'PrintEMAangle/61efed26271e48a4b09c3bfbeca12ecd': Object of type 'NinjaTrader.Indicator.TimeSeriesHelper' cannot be converted to type 'System.Int32'.
I cant even run the following code
protected override void OnBarUpdate()
{
double closes1 = EMA(length)[1] - EMA(length)[2];
PrintWithTimeStamp(closes1.ToString());
// double radians = Math.Asin(closes1 / TickSize);
// double degrees = radians * 180/Math.PI;
// PrintWithTimeStamp(degrees.ToString());
}
PS - I already found the indicator in the form to download but I want to work on my coding skills and I cant figure out what is wrong
Comment