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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    51 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    31 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    165 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    100 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    160 views
    2 likes
    Last Post CaptainJack  
    Working...
    X