Login Page - Create Account

Support Board


Date/Time: Mon, 06 May 2024 10:16:38 +0000



Post From: Bollinger Band Squeeze TTM Squeeze

[2017-07-09 23:58:31]
User509820 - Posts: 69
Hello, I am interested in a study called TTM Squeeze I have used it on other platforms(Thinkorswim). I read another thread saying the Bollinger Band Squeeze studies are the same as TTMS. Unfortunately I can't get the study to perform like the original TTM Squeeze. Tried adjusting settings but cannot seem to get it right. I have a code on how it is setup on another platform. Is there a way to get it working the same?


def nK = 1.5;
def nBB = 2.0;
def lengthsqueeze = 20;

def BBHalfWidth = StDev(price, lengthsqueeze);
def KCHalfWidth = nK * Average(TrueRange(h, c, l), lengthsqueeze);
def isSqueezed = nBB * BBHalfWidth / KCHalfWidth < 1;