![]() **NOTE: An "aggregationPeriod" variable in the form of "monthAggregationPeriod" is added to turn off the irrelevant labels, if on a smaller time frame chart. ![]() MonthSqueeze = if monthBBSInd < AlertLine then 1 else 0 ĪddLabel(monthSqueeze and monthAggregationPeriod, "M", color.red) ĪddLabel(!monthSqueeze and monthAggregationPeriod,"M", color.dark_green) If GetAggregationPeriod() 0, ((nBB * monthSDev) /monthDenom), 0) Let's start by first using the MTF Framework to create the Monthly TTM_Squeeze label code: #Global Variablesĭef trueRangeAverageType = AverageType.SIMPLE Here is a link to the thinkScripter who has the TTM_Squeeze source code available via Blogspot. To work around that limitation, we use the source code for the TTM_Squeeze instead. That is, the labels don’t plot as expected. One of the nuances, or glitches rather, is that references to the TTM_Squeeze function, inside of an if/else clause that also includes an aggregation period tends to lead to false-squeezes. In this particular tutorial, we’re going to be working a lot with labels, and connecting Boolean conditions, such as whether or not we have a squeeze, to turn a certain color.įor all of our Volatility Box members who have already gone through the MTF Squeeze Histogram tutorial, we’ll also be showing you the trick to have the labels stack on top of one another.Īnd finally, the last concept that we’re going to discuss is finding an alternative to referencing the built-in TTM_Squeeze function in ThinkOrSwim, and using source code instead. Similarly, if you wish to build your own MTF version of something, you should be able to use this same framework, that’s available for free.Īnother concept that we’re going to be discussing is around formatting. We had discussed this in that tutorial as well – the importance of writing some of this type of code in a way that we can easily lift and re-use it for new purposes. The main concept that we’re going to be implementing is using our “Drag and Drop” multiple time frame module code, that we built as part of the MTF DMI indicator tutorial, as our main building blocks here. There are a few different concepts that we’re going to be covering in this tutorial. That’s the power of being able to use Volatility Models and Price Movement Ranges that you can trust. ![]() If you’d like more information, send us an e-mail at. Our first and second targets were $0.017 and $0.029 /NG ticks, and we saw a max move of a little more than $0.050 /NG ticks.įor anyone interested in using the Volatility Box to trade either Futures or Stock, we’re offering a bundle discount for a limited time.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |