Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

exposing values of Custom indicator in a strategy

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

    #16
    Originally posted by NinjaTrader_ChelseaB View Post
    Hello nothingbutprofits,

    Are there other public variables (possibly using the NinjaScriptProperty attribute) within the scope of the MACDCustom indicator class?

    Overloads are how you would call the indicator based on the public properties using the NinjaScriptProperty attribute.

    Below is a link to the help guide on NinjaScriptProperty Attribute.
    https://ninjatrader.com/support/help...yattribute.htm

    Like SMA(14), this requires a Period overload parameter (declared publicly within the SMA class and uses the NinjaScriptProperty attribute).
    https://ninjatrader.com/support/help...simple_sma.htm

    MACD(2,14,3), this requires a Fast, Slow, and Smooth overload parameters (also public using NinjaScriptProperty).
    https://ninjatrader.com/support/help...gence_macd.htm
    Your recommendation links help me on solving the problem. Your support and knowledge are awesome!

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    132 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X