Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

zigzag dll Deviation type error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    zigzag dll Deviation type error

    I have been trying to solve this issue for days . it works on open source but not when using a dll. Please help I don't know where to go from here.





    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
    Last edited by ballboy11; 07-18-2017, 11:54 PM.

    #2
    Hello ballboy11,

    It looks like this is a similar issue to the thread opened here: http://ninjatrader.com/support/forum...d.php?t=102267

    Can I confirm if this is a new issue separate from your previous issue thread?

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    156 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    90 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    140 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    130 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    107 views
    0 likes
    Last Post CarlTrading  
    Working...
    X