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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    580 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    335 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    102 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X