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