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
modified Swing indicator
Collapse
X
-
modified Swing indicator
I use the Swing indicator to show recent support/resistance points. I modified the NT swing indicator so that the user can chose between the high/low of the bar OR the bar close. (My thanks to the NT programmers for exposing their code; I only needed to add a dozen or so lines of code to the indicator). -
I never heard back from the original author about the bug I found. All credit and thanks should go to him for his efforts.
All I did was download his ZIP file, study it by comparing bjeswing.cs to original swing.cs, noticed an anomaly (aka, a bug), and fixed it.
Fyi, by looking at my screenshot of the bug, you could have downloaded bjeswing.zip from author's first post and easily corrected the bug in bjeswing.cs yourself.
Nevertheless, as requested, I've uploaded my fixed version.Attached Files
Comment
-
Thank you very much for your reply I would also like to Thank the author of this indicator this is almost exactly what I need I dont know if you can see this error from the original swing indicator the previous closing price is not the same at all Ive joined a screenshot if you can help me out
Comment
-
-
I don't recommend modifying the Swing indicator (or bltSwing) to do this.
I'm sure other dedicated solutions already exist.
Try searching downloads section of this forum or try https://www.bigmiketrading.com/.
If you find one you like, let me know and I'll see if I can modify it to use bltSwing.
Comment
-
Thanks I have a request
Bltdavid your indicator is fantastic its very usefull for me Thank you very much
I have the code for one that is approximatly the same but I need it to be coded and it need to be plotable on the dataseries meaning that it can plot for long and short for programmation
Can you please help me I guess you would just need to modify the bltswing indicator and add the new code lines
I have the code but I have no knowledge in programmation on Ninjatrader I program via Blood hound you should check it out its fantastic
I can send you the code if you can provide me your email adress
Thank againLast edited by izzyp45; 02-13-2015, 12:53 AM.
Comment
-
Originally posted by izzyp45 View PostBltdavid your indicator is fantastic its very usefull for me Thank you very much
I have the code for one that is approximatly the same but I need it to be coded and it need to be plotable on the dataseries meaning that it can plot for long and short for programmation
Can you please help me I guess you would just need to modify the bltswing indicator and add the new code lines
I have the code but I have no knowledge in programmation on Ninjatrader I program via Blood hound you should check it out its fantastic
I can send you the code if you can provide me your email adress
Thank again
The idea is relative simple. In the indicator you have, everywhere it is using the High or Low DataSeries, we'd substitute eHigh and eLow instead. These our own "effective" Highs and Lows that normally contain exact same values as regular High/Low, the point is UseBarHiLo controls how we add values to eHigh/eLow.
The beauty is that we get to load values into eHigh/eLow ourselves, so if UseBarHiLo is true, this means we add normal HighLow values,
Code:if (UseBarHiLo) { eHigh.Set(High[0]); eLow.Set(Low[0]); }
Code:else { eHigh.Set(Math.Max(Open[0], Close[0])); eLow.Set(Math.Min(Open[0], Close[0])); }
If you'd still like to email me, send me a PM using the forum.
I'd be happy to take a look at it.
Comment
-
Multiples strenght swing
hey bltdavid I hope your going fine I have a question regarding the bltswing that you have made.
I would like to know if its possible to add multiples strenght I know its seems a stupid question because I could just set it up 2 or 3 times on the chart with differents strenght
but Im trying to program a strategy with another system that needs only 1 indicator to refer to
Let meknow if it's possible to add multiple strenght settings in blt swing that way when it's enabled on the chart it will plot all the different strenght setup lets say one of (5) one of (13) and one of (25) and one of (100)
Im sure its a simple easy thing to do in the code but im requesting your help again
Thank you very much
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by QuantKey_Bruce, Today, 05:39 AM
|
1 response
7 views
0 likes
|
Last Post
|
||
Started by higher.high, Today, 06:10 AM
|
0 responses
10 views
0 likes
|
Last Post
![]()
by higher.high
Today, 06:10 AM
|
||
Started by McSauce, 05-10-2023, 06:22 PM
|
2 responses
40 views
0 likes
|
Last Post
![]()
by McSauce
Today, 06:08 AM
|
||
Started by dodoei, 12-25-2020, 11:09 AM
|
13 responses
137 views
0 likes
|
Last Post
![]()
by thehammer
Today, 05:45 AM
|
||
Started by pstrusi, Today, 05:14 AM
|
1 response
18 views
0 likes
|
Last Post
|
Comment