Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modifying the Swing Indicator?

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

    Modifying the Swing Indicator?

    Hello,

    I have a quick question regarding the Swing Indicator:

    The description of the "Strength" parameter of the Swing Indicator states: 'Number of bars required on each side of the swing point'

    What I'd really like is to have the indicator show me is if the current bar is the highest of the past 5 bars (or whatever the strength parameter).

    Basically, I'd like the indicator to only look back the specified number of bars instead of needing 5 bars after the peak/valley.

    Is this possible?

    Thanks in advance!

    Todd

    #2
    Welcome to our forums Todd - so you would seek to change the Swing point definition then to having x lower # of bars to confirm a swing high for example?

    Wouldn't this be very close to what the Donchian Channels would do?

    Ultimately the Swing indicator code would be open for you to review and apply changes as desired.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by ToddJessop View Post
      ... What I'd really like is to have the indicator show me is if the current bar is the highest of the past 5 bars (or whatever the strength parameter).

      Todd
      Hm. I thought that what you describe is called a Donchian Channel?

      Comment


        #4
        Thank you for the responses.

        The Donchian Channel indicator clutters my chart more than I'd like so I decided I needed to learn some C# and modify the code myself.

        I was able to modify the code for the swing indicator so it only looks x numbers of bars back and a single bar forward, allowing me to have the swing line begin painting one bar after a swing and not x bars after a swing.

        Todd

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by StockTrader88, 03-06-2021, 08:58 AM
        45 responses
        3,991 views
        3 likes
        Last Post johntraderuser2  
        Started by TAJTrades, Today, 09:46 AM
        0 responses
        7 views
        0 likes
        Last Post TAJTrades  
        Started by rhyminkevin, Yesterday, 04:58 PM
        5 responses
        62 views
        0 likes
        Last Post dp8282
        by dp8282
         
        Started by realblubb, Today, 09:28 AM
        0 responses
        8 views
        0 likes
        Last Post realblubb  
        Started by AaronKoRn, Yesterday, 09:49 PM
        1 response
        19 views
        0 likes
        Last Post Rikazkhan007  
        Working...
        X