also, anyone care to discuss how to apply this indicator to trading?, what interval chart as a preference, that sort of comments?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BB (TTM) Squeeze and PBF Squeeze replica ported to NT
Collapse
X
-
sound alert for RSqueeze
Wondered if anyone ever worked out the sound alert for RSqueeze? It is frustrating to be distracted by something for a moment and miss. In my setup it's when the yellow dots appear. Would like to have a gentle pleasant sound (chime?) play until the dots turn blue. BTW the chart is of GC with RJay's RenkoSpectrum bars
Comment
-
Looking for some help and will preface by saying I'm not sure if I'm posting to the correct forum but thought I would start here.
I've downloaded the RSqueeze indicator for NT8 and like everything about it except that the basic BBsqueeze doesn't seem to be plotting the dots where I'm use to seeing them. I.e., I believe the original indicator as described by John Carter is to plot a red dot(or color assigned) when the Bollinger Bands are inside the Keltner Channel indicating a consolidation type "squeeze". I have the TTM licensed indicator running on a different platform which plots the squeeze indicator in this way. However, the RSqueeze seems to be plotting the dots on a slightly different calculation. I opened the indicator with NinjaScript Editor and it seems that the BBsqueeze is based on something different than the Bollinger - Keltner relationship. I.e., it doesn't seem to reference the Keltner Channel in the script. At least not that I am able to decipher.
Here's a snippet of the code:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
switch (SqueezeStyle)
{
case(RSqueezeStyle.BBSqueeze):
lrm_ = new Series<double>(this);
medianPriceOsc_ = new Series<double>(this);
atr_ = ATR(SqueezeLength);
SD = StdDev(SqueezeLength);
DC = DonchianChannel(MomentumLength);
LR = LinReg(medianPriceOsc_, MomentumLength);
ema_ = EMA(MomentumLength);
break;
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Then, further down in the code where it mentions "Squeeze Dots" there doesn't seem to be any reference to Keltner Channel. Again, here is a snippet of code from the section I'm writing about.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
protected override void OnBarUpdate()
{
switch (SqueezeStyle)
{
case(RSqueezeStyle.BBSqueeze):
if (CurrentBar < MomentumLength) return;
// Squeeze Dots
SqueezeDots[0] = 0;
if ((nK*atr_[0])!= 0)
bbs = (nBB*SD[0])/(nK*atr_[0]);
else
bbs = 1;
if (bbs <= 1)
PlotBrushes[1][0] = SqueezeDotBrush;
else
PlotBrushes[1][0] = NormalDotBrush;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
I saved a copy of the indicator and tried to modify the script in these areas for the BB - Keltner Squeeze and spent a couple days with it to no avail.
Attached is the stock downloaded NT8 indicator that I'm running as I never could get anything I attempted to change to compile correctly.
Any help or guidance would be greatly appreciated.
Thanks in advance,
GomezAttached Files
Comment
-
I have downloaded the indicator. Thank you very much for that. There is however a huge lack of documentation for:
PBFSqueeze
and
CounterTrend
I have tried google searching, reviewing the comments inside the code, ... to no vail. I am completely familiar with John Carter Bollinger Band methodology, as well as CCI indicator. But, when it comes to GuassianPoles, gfgg, ... I am completely at loss. Is there any documentation or at least some mathematical formula for this? Thank you.
Ali Asi | 604-785-8900 | [email protected] | Nu Stream Realty
Comment
-
Welcome to the forums aliasi100!
These are not NinjaTrader standard indicators, so the information would need to come from the person that has written the indicator or from someone who is familiar enough with the code and the study to explain the math behind it.
For NinjaTrader standard indicators, the "i" info button in the top "Available" field can be used to view the description, and our documentation has links to various studies for these indicators. The source code is also open for most indicators and can be referenced in the NinjaScript Editor.
NinjaScript documentation for system indicators - https://ninjatrader.com/support/help...indicators.htm
We will leave the thread open for any community input on the custom indicator's studies.
If you have any new inquiries, please do not hesitate to open a new thread.JimNinjaTrader Customer Service
Comment
-
Originally posted by aliasi100 View PostI have downloaded the indicator. Thank you very much for that.
There is however a huge lack of documentation for I have tried google searching, reviewing the comments inside the code, ... to no avail.
Gaussian Poles
Is there any documentation or at least some mathematical formula for this? Thank you.
Agree the documentation can sometimes be thin.
"to no avail. Gaussian Poles Is there any documentation or at least some mathematical formula for this?"
"Gaussian Poles" .. I guess you like to start by first jumping into the deep end of the pool.
The Gaussian Poles, Low Pass Filters, are borrowed "noise reduction" concept from electrical engineering / sound engineering.
Gaussian Filter
A Gaussian filter has the advantage that its Fourier transform is also a Gaussian distribution centered around the zero frequency (with positive and negative frequencies at both sides). One can then control the effectiveness of the low-pass nature of the filter by adjusting its width. Also, the attenuation of higher frequency components, hence their relative removal, is more effective with a Gaussian filter than with moving-average filters. The Gaussian filter may also reflect the inherent statistical nature of fluctuations in many acquired measurement distributions. The Blackman window of Eq. (9.20) also provides a shape that resembles that of a Gaussian distribution, and as such can be utilized as a filter, in place of the Gaussian filter, for computational convenience.
Chapter 8 for a true intro to the fundamentals if you want to go that deep.
https://www.analog.com/media/en/trai...n/Chapter8.pdf
With regards to trading, pragmatically Low Pass and High Pass Analog filters were popularized by John Ehlers. His site is https://www.mesasoftware.com/
Here is a intro pdf he provides. https://www.mesasoftware.com/papers/GaussianFilters.pdf
Have fun with this 'light' reading!
HedgePlay
- Likes 1
Comment
-
Originally posted by hedgeplay View Post
Welcome Ali Asi.
Agree the documentation can sometimes be thin.
"to no avail. Gaussian Poles Is there any documentation or at least some mathematical formula for this?"
"Gaussian Poles" .. I guess you like to start by first jumping into the deep end of the pool.
The Gaussian Poles, Low Pass Filters, are borrowed "noise reduction" concept from electrical engineering / sound engineering.
With regards to trading, pragmatically Low Pass and High Pass Analog filters were popularized by John Ehlers. His site is https://www.mesasoftware.com/
Here is a intro pdf he provides. https://www.mesasoftware.com/papers/GaussianFilters.pdf
Have fun with this 'light' reading!
HedgePlay
Thanks a lot for the helpful article. That is exactly what I was looking for. Cheers
Ali Asi | *removed* | [email protected]
Comment
-
Originally posted by aliasi100 View Post
Dear HedgePlay
Thanks a lot for the helpful article. That is exactly what I was looking for. Cheers
Ali Asi | *removed* | [email protected]
I am glad it helped.
You might have interest in today's update of an Ehrler concept which I personally think is more directly pragmatically useful than Ehler's Gaussian work.
https://ninjatraderecosystem.com/use...e-decycler-ii/
You may find you prefer a longer period and smaller channel width than the default settings. Something in-between the default settings and the example picture.
HedgePlay
Last edited by NinjaTrader_Jim; 04-19-2021, 06:34 AM.
Comment
-
Hello all, can somebody tell me what PBF means on the squeeze indicator, I know BB is bollinger bands setting, but, PBF is..?
TIA.
Comment
-
Originally posted by sixbunches View PostHello all, can somebody tell me what PBF means on the squeeze indicator, I know BB is bollinger bands setting, but, PBF is..?
TIA.
HedgePlay
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kaywai, 09-01-2023, 08:44 PM
|
5 responses
601 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by xiinteractive, 04-09-2024, 08:08 AM
|
6 responses
22 views
0 likes
|
Last Post Today, 12:31 AM | ||
Started by Pattontje, Yesterday, 02:10 PM
|
2 responses
16 views
0 likes
|
Last Post
by Pattontje
Yesterday, 11:49 PM
|
||
Started by flybuzz, 04-21-2024, 04:07 PM
|
17 responses
230 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:45 PM
|
||
Started by agclub, 04-21-2024, 08:57 PM
|
3 responses
17 views
0 likes
|
Last Post
by TradingLoss
Yesterday, 11:42 PM
|
Comment