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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    68 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    151 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X