Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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?
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    1 view
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    6 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    41 views
    0 likes
    Last Post alifarahani  
    Working...
    X