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 wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    26 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    32 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, Yesterday, 09:53 PM
    2 responses
    49 views
    0 likes
    Last Post wzgy0920  
    Started by Kensonprib, 04-28-2021, 10:11 AM
    5 responses
    192 views
    0 likes
    Last Post Hasadafa  
    Started by GussJ, 03-04-2020, 03:11 PM
    11 responses
    3,234 views
    0 likes
    Last Post xiinteractive  
    Working...
    X