017-07-18 11:02:37:579 WARNING: Error compiling import assembly: c:\Users\xxx\Documents\NinjaTrader 8\bin\Custom\zigzagRetail1005.cs(47,114) : error CS0019: Operator '==' cannot be applied to operands of type 'DeviationType' and 'DeviationType'
2017-07-18 11:02:37:579 WARNING: Error compiling import assembly: c:\Users\xxx\Documents\NinjaTrader 8\bin\Custom\zigzagRetail1005.cs(49,128) : error CS0266: Cannot implicitly convert type 'DeviationType [c:\Users\xxx\Documents\NinjaTrader 8\bin\Custom\Indicators\@ZigZag.cs(439)]' to 'DeviationType [c:\Users\xxx\Documents\NinjaTrader 8\bin\Custom\zigzagRetail1005.dll]'. An explicit conversion exists (are you missing a cast?)
Here is what was coded for deviation type
private DeviationType iDeviationType = DeviationType.Points;
[NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "ZigZag Deviation (Points/Percentage)", GroupName = "Pivot Type")]
public DeviationType DeviationType
{
get { return iDeviationType; }
set { iDeviationType = value; }
}
int highBar = ZigZag(this.iDeviationType,this.dDeviationValue,th is.bUseHighLow).HighBar(ba, 1, 1);
AND THIS IS IN THE GENERATED NINJACODE
cachezigzagRetail2017[idx].DeviationType == deviationType
Comment