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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    72 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    38 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    99 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    60 views
    0 likes
    Last Post PaulMohn  
    Working...
    X