Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trying to edit an existing indicator, code does not make sense

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

    Trying to edit an existing indicator, code does not make sense

    I found an indicator that I am trying to use as a starting point for one I would like to build. I found this line of code that I have no idea on what it is trying to accomplish. Can anyone clarify what it is doing and what the math could potentially output?

    this.Trend3[0] = ((NinjaScriptBase) this.OrigEMA((ISeries<double>) this.tr, Math.Min(((NinjaScriptBase) this).CurrentBar, 52)))[0];

    I can see that it is pulling in a value from the EMA and tr is a number as well(lets say its 5).


    #2
    Hello newage89,

    Thank you for your post.

    Is this line of code from an indicator that comes with NinjaTrader by default? If so, which indicator? If not, you may need to reach out to the developer of the indicator for more information on what it does and how it was intended to function.

    I look forward to your reply.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    49 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    69 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    36 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    96 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    59 views
    0 likes
    Last Post PaulMohn  
    Working...
    X