Have you compared your KBB squeeze to the squeeze provided in TOS


Category:
0
0

So I am trying to recreate your KBB squeeze for TOS and believe I have it, but I am getting slightly different reading than the proprietary alert that is already built into TOS,

TTM_Squeeze(price, length, nK, nBB, alertLine).SqueezeAlert

To be more specific, my code is generally 1 count off, and sometimes it misses a squeeze altogether, if that squeeze is short, say 1 count. Other times it reads exactly the same as the built in alert. Im just curious if this is a common problem, since we dont know exactly how TOS is coding their squeeze or if I have a problem in my code. Thanks.

Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on January 17, 2018 1:19 pm
371 views
0
Private answer

The KBB Squeeze I created for TradeStation: https://www.hahn-tech.com/tradestation-keltner-bollinger-band-squeeze-macd/

Exactly matches the green and red dots of the TTM Squeeze for Thinkorswim.

I don’t want anyone to misunderstand. There is no breach of copyright. There was no effort made to “reverse engineer” TTM’s source code. (I am speaking to the other visitors to this post)

There never was any secret behind the green and red dots of TTM’s version of the squeeze. TTM was not the originator of the concept. It is simply the relationship between the width of the Bollinger Bands and the width of the Keltner channels, a ratio if you will. So that part is completely open source and well known. However I have seen a lot of code that makes simple mistakes when computing the squeeze dots (ratio).

Screenshot below shows the version that comes with Thinkorswim above my own version. (This is the same exact code I used to translate the KBB Squeeze for TradeStation).

You can see there is a 100% match. I put this together 5 years ago and have used it extensively. So I can assure you it is possible to get them to match exactly. I say all this to encourage you in your work, to keep looking for the reasons your code does not yet match 100%.

Check the moving averages. Break things down into separate pieces and check to make sure all the individual pieces match between TradeStation and Thinkorswim. If any one piece fails to match, it needs to be fixed because it will throw of everything else.

Good luck, and have fun!

Attachments:
Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on January 17, 2018 2:54 pm