Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modify SWING INDICATOR

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

    Modify SWING INDICATOR

    Hello everyone,

    I would really appreciate your help on the next topic, considering I know nothing about codes.

    I need to edit the Swing Indicator properties to show a "Use high low" checkbox, just like the one the ZigZag indicator has. Is there any easy way to do it?

    Thanks a lot!


    ​​​ ​​
    Attached Files

    #2
    Hello everyone,

    I would really appreciate your help on the next topic, considering I know nothing about codes.

    I need to edit the Swing Indicator properties to show a "Use high low" checkbox, just like the one the ZigZag indicator has. Is there any easy way to do it?

    Thanks a lot!


    ​​​ ​Click image for larger version

Name:	IMAGE.png
Views:	98
Size:	53.2 KB
ID:	1335620
    Attached Files

    Comment


      #3
      Not sure if this is what you wanted, but to add a boolean to the properties you would just need to add this code within the Properties region, commonly found at the bottom after the
      I put 'UseHighLow', but you would just match that to the boolean you need to use.
      OnStateChange()
      {
      }

      [Display(Name = "Use High Low", Description = "Enter a description when you hover the mouse over the name", Order = 1, GroupName = "Parameters")]
      public bool UseHighLow
      { get; set; }​

      Comment


        #4
        Hello rsalas2024,

        This would require some C# coding experience to utilize this property in the logic.

        You would want to first make a copy of the swing indicator and modify the copy with your custom code.

        rockmanx00 is providing information about how to create a bool input. The bool would need to be used in the logic.

        The ZigZag indicator adds a highSeries and lowSeries variable to hold either the High and Low price series or the Input series (of an indicator) to choose between using the price series or the indicator plot for calculations.

        Below is a link to a support article with helpful resources on getting started with C# and NinjaScript.


        You can also contact a professional NinjaScript Consultant who would be eager to create or modify this script at your request or assist you with your script. The NinjaTrader Ecosystem has affiliate contacts who provide educational as well as consulting services. Please let me know if you would like a list of affiliate consultants who would be happy to create this script or any others at your request or provide one on one educational services.
        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
        556 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X