Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modifying the Swing Indicator?

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

  • ToddJessop
    replied
    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

    Leave a comment:


  • koganam
    replied
    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?

    Leave a comment:


  • NinjaTrader_Bertrand
    replied
    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.

    Leave a comment:


  • ToddJessop
    started a topic Modifying the Swing Indicator?

    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

Latest Posts

Collapse

Topics Statistics Last Post
Started by DannyP96, 05-18-2026, 02:38 PM
1 response
27 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 05-11-2026, 05:56 AM
0 responses
117 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 05-10-2026, 08:12 PM
0 responses
69 views
0 likes
Last Post CarlTrading  
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
226 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
417 views
0 likes
Last Post CaptainJack  
Working...
X