The trading day consists of 6.5 hours or 390 minutes... Half of 390 is 195 and 1/3 of 390 is 130... The numbers 78 and 39 are also players...@chiefcarl What significance of 195 and 130 min timeframe, can you please elaborate? Thanks
The trading day consists of 6.5 hours or 390 minutes... Half of 390 is 195 and 1/3 of 390 is 130... The numbers 78 and 39 are also players...@chiefcarl What significance of 195 and 130 min timeframe, can you please elaborate? Thanks
Correct I totally agree, I use the 195 and 130 heavily for selling put spreads based on the daily chart setup.The trading day consists of 6.5 hours or 390 minutes... Half of 390 is 195 and 1/3 of 390 is 130... The numbers 78 and 39 are also players...
In reality you don't look for red bars, you look for bars that close lower than previous bars... Color is moot... Something like the following is the logic to check for three lower closing bars...@pk1729 do you know what the code would be to create a scan to show when there are the first 3 consecutive red bars? Looking a little earlier. Any help is greatly appreciated!
def threeDown = close < close[1] and close[1] < close[2] and close[2] < close[3];
TTM_Squeeze()."SqueezeAlert" [1] is false and
TTM_Squeeze()."SqueezeAlert" [2] is false and
TTM_Squeeze()."SqueezeAlert" [3] is false
The code you posted is all you need for that scan. The line with [1] looks at yesterday, [2] looks at the day before, etc. That code does not look at the current day, only yesterday and two days previous. You can add more days with higher numbers in the brackets. To look at today you can put zero in the brackets [0].i am looking for stocks that are in the squeeze for more than 3 days.
I am looking for TTM squeeze histogram cross scanner code.
plot scan = reference TTM_Squeeze.Histogram crosses above 0;
Thanks a lot for the quick response. Is it possible to get yellow first bar scan and blue barI think this should do what you want.
Ruby:plot scan = reference TTM_Squeeze.Histogram crosses above 0;
Thanks a lot for the quick response. Is it possible to get yellow first bar scan and blue bar
Thanks a lot for the quick response. Is it possible to get yellow first bar scan and blue bar
Thanks working like a charm, If I wanted to captured the 2nd Blue bar (can I use above 1)??I think this should do what you want.
Ruby:plot scan = reference TTM_Squeeze.Histogram crosses above 0;
def hist = reference TTM_Squeeze.Histogram;
plot scan = if hist > 0 and hist[1] > 0 and hist[2] < 0 then 1 else Double.NaN;
plot squeeze = if s0 or s1 or s2 or s3 then 0 else double.nan;
squeeze.SetLineWeight(3);
squeeze.SetStyle(curve.POINTS);
squeeze.AssignValueColor(if s1 then color.orange
else if s2 then color.red
else if s3 then color.yellow
else color.green);
def hist = reference TTM_Squeeze.Histogram;
plot scan = if hist > 0 and hist[1] > 0 and hist[2] < 0 and squeeze == s0 then 1 else Double.NaN;
Good day everyone.
I'm looking for a little help on a scanner (hopefully simple) that will identify when the squeeze has now become cyan or at least a variable threshold I can set that will trigger the alert.
Could anyone please assist in this?
Thanks for your help!
def hist = reference TTM_Squeeze.Histogram;
plot scan = if hist > 0 and hist[1] > 0 and hist[2] < 0 then 1 else Double.NaN;
def hist = reference TTM_Squeeze.Histogram;
plot scan = if hist > 0 and hist[1] < 0 and hist[2] < hist[1] then 1 else Double.NaN;
Do you know if it’s possible to calculate The gain/difference between ; for example. Cyan 2 bars alone compared to cyan 1 bar agoI posted in the Discord channel but will also post here... Brace yourself, it's a whopper...!!!
Ruby:def hist = reference TTM_Squeeze.Histogram; plot scan = if hist > 0 and hist[1] > 0 and hist[2] < 0 then 1 else Double.NaN;
This code will find the second cyan histogram bar... The code can easily be modified to find the first cyan bar as shown below...
Ruby:def hist = reference TTM_Squeeze.Histogram; plot scan = if hist > 0 and hist[1] < 0 and hist[2] < hist[1] then 1 else Double.NaN;
How can I calculate whether bar[1] is 5% > than bar[2] ?
using the histogram? ive been able to figure simple stuff out but this math stuff seems out of my range for now. any help is much appreciated
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
C | TTM Squeeze Fire Signal - Another Take! | Indicators | 19 | |
TTM Squeeze Clouds Indicator for ThinkorSwim | Indicators | 42 | ||
D | TTM Trend Source Code For ThinkOrSwim | Indicators | 2 | |
H | My version of the TTM Trend for ThinkorSwim | Indicators | 12 | |
T | Beardy Squeeze Pro For ThinkOrSwim | Indicators | 25 |
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.