Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Modifying the Swing Indicator?
Collapse
X
-
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
-
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:
-
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
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
117 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
226 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
417 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|

Leave a comment: