Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Having error trying to reference an indicator that is inside of a folder

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

    Having error trying to reference an indicator that is inside of a folder

    I have an unlocked indicator called PriceActionSwing indicator which inside of a folder called PriceActionSwing. I tried to reference this indicator using Strategy Builder, but it's giving me an error. Both the underlined lines were created by NT Strategy Builder.

    Error:
    'NinjaTrader.NinjaScript.Indicators.Indicator.Pric eActionSwing(PriceActionSwing.Base.SwingStyle, double, int, bool, PriceActionSwing.Base.SwingLengthStyle, PriceActionSwing.Base.SwingDurationStyle, bool, bool, bool, PriceActionSwing.Base.SwingTimeStyle, PriceActionSwing.Base.SwingVolumeStyle, PriceActionSwing.Base.VisualizationStyle, NinjaTrader.Gui.Tools.SimpleFont, int, int, int, int, int, int, NinjaTrader.Gui.DashStyleHelper, int, bool, bool)' is a 'method', which is not valid in the given context
    Attached Files

    #2
    Hello fawzanalim,

    The issue may be with how the properties of that custom script are setup.

    Testing a basic script shows the namespace usage looks correct. Below is a link to a video of a test of using an indicator in a folder in the strategy builder.


    I would first recommend reaching out to the vendor or original author that has provided you with this script and inquire if this was designed for use with the strategy builder.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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