Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Swing Indicator Mean?
Collapse
X
-
Swing Indicator Mean?
Is it possible to plot the mean of the Swing high/low values? I'm looking for something similar to the Donchian Channel mean, except it would be the Swing H/L values that would determine the mean output. Any thoughts? Thanks.Tags: None
-
Wow! 466 lines of code.
Can someone help me out with where and what I'd need to input to get the median of the Swing H/L values?
Thanks!
Comment
-
Hello MiniDowTrader,
If you have limited time or programming capabilities, you can discuss your requirements with any of our NinjaScript consultants.
Click here for a list of certified NinjaScript Consultants
We will leave this thread open and allow other users to offer their input or advice here.MatthewNinjaTrader Product Management
Comment
-
Originally posted by MiniDowTrader View PostWow! 466 lines of code.
Can someone help me out with where and what I'd need to input to get the median of the Swing H/L values?
Thanks!
Your requirement is not clear. How do you mean the median of the Swing H/L values?
- Just take all the swing high values and all the swing low values and find the median?
- Find the median of all the swing highs and all the swing lows separately?
- Find the median of the actual swings from each extreme to the next?
- ???
Comment
-
Thanks Matthew.
koganam, what I'm looking for is a line that indicates the 50% retrace of the subsequent swing high/low or low/high. This line would appear once the next high/low appears therefore showing the median of the last H/L or L/H. It would continue making the line until the next swing high/low was created then a new median line is created.
Please see attached image. Blue line would represent the median of the swing low to high. But it would not appear until the swing high is created.Last edited by MiniDowTrader; 09-15-2011, 07:08 PM.
Comment
-
Originally posted by MiniDowTrader View PostThanks Matthew.
koganam, what I'm looking for is a line that indicates the 50% retrace of the subsequent swing high/low or low/high. This line would appear once the next high/low appears therefore showing the median of the last H/L or L/H. It would continue making the line until the next swing high/low was created then a new median line is created.
Please see attached image. Blue line would represent the median of the swing low to high. But it would not appear until the swing high is created.
Comment
-
I have next to no coding experience of than simple modifications.
Unless I can get help with modifying the existing Swing indicator, I may have to use some other resources to build a new indicator.
Comment
-
Originally posted by MiniDowTrader View PostI have next to no coding experience of than simple modifications.
Unless I can get help with modifying the existing Swing indicator, I may have to use some other resources to build a new indicator.
It will be easier to write another indicator that calls the Swing() indicator for its exposed properties, and uses same to calculate the median value that you require.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
||
Started by Nickgiaco, 02-26-2024, 10:23 AM
|
2 responses
72 views
0 likes
|
Last Post Today, 05:12 AM | ||
Started by Johndc, Today, 04:39 AM
|
0 responses
8 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
11 views
0 likes
|
Last Post Today, 02:34 AM |
Comment