ucsgears

UCS_Trend

Its been a long time!!!!, Here, I am back with another indicator bust. This time it is TTM_Trend sold by Trade The Market.

This is my interpretation of the indicator, There are some mismatches, but i consider it as minimum. On Thinkorswim I was able to match it exactly. May be its just the way Tradingview plots the arguments specified. Here is the concept for anyone who want to improve and match it to the actual.

Update: The mismatch occurs in high volatility zone. the painted bars highs and lows in Tradingview is different when compared to TOS.
Remove from Favorite Scripts Add to Favorite Scripts
study("UCS_Trend", overlay=true) // My Interpretation of TTM Trend bars. It is really close to the actual. 

haclose = ohlc4
haopen = na(haopen[1]) ? (open + close) / 2 : (haopen[1] + haclose[1]) / 2
//hahigh = max(high, max(haopen, haclose))
//halow = min(low, min(haopen, haclose))

ccolor = haclose - haopen > 0 ? 1 : 0

inside6 = haopen <= max(haopen[6],haclose[6]) and haopen>=min(haopen[6],haclose[6]) and haclose <= max(haopen[6],haclose[6]) and haclose >= min(haopen[6],haclose[6]) ? 1 : 0

inside5 = haopen <= max(haopen[5],haclose[5]) and haopen>=min(haopen[5],haclose[5]) and haclose <= max(haopen[5],haclose[5]) and haclose >= min(haopen[5],haclose[5]) ? 1 : 0

inside4 = haopen <= max(haopen[4],haclose[4]) and haopen>=min(haopen[4],haclose[4]) and haclose <= max(haopen[4],haclose[4]) and haclose >= min(haopen[4],haclose[4]) ? 1 : 0

inside3 = haopen <= max(haopen[3],haclose[3]) and haopen>=min(haopen[3],haclose[3]) and haclose <= max(haopen[3],haclose[3]) and haclose >= min(haopen[3],haclose[3]) ? 1 : 0

inside2 = haopen <= max(haopen[2],haclose[2]) and haopen>=min(haopen[2],haclose[2]) and haclose <= max(haopen[2],haclose[2]) and haclose >= min(haopen[2],haclose[2]) ? 1 : 0

inside1 = haopen <= max(haopen[1],haclose[1]) and haopen>=min(haopen[1],haclose[1]) and haclose <= max(haopen[1],haclose[1]) and haclose >= min(haopen[1],haclose[1]) ? 1 : 0


colorvalue = inside6 ? ccolor[6] : inside5 ? ccolor[5] : inside4 ? ccolor[4] : inside3 ? ccolor[3] : inside2 ? ccolor[2] : inside1 ? ccolor[1] : ccolor

color = colorvalue ? blue : red

barcolor(color)
Indeed a long time, i was thinking its a joke ;)
Reply
Yeah... Been stressful with trades this year. Not one of those easy markets like last few years. So navigating without losing my shirt is quite hard..
Reply
2use ucsgears
Are the systems failing due to it being a sideways market or psychology fails?
Reply
The money is moving around sectors on constant basis. The FED and Govt data is misleading. The race for the lowest currency among multiple countries is also the case. Well. In 2 months the ECB is supposed to announce the QE. Lets see what they are up to.
Reply
I will be coding the new MTF Trend from SO, Again a huge rip off, for $600. and a Breakout indicator for $200.

Reply
Here is the link to the video /watch?v=3gNxBYL1oJU&list=PLP1qMpUAau2A3fWBSqYeKP3ZOR997VUWz&index=1#
Reply
wa1 ucsgears
Just watched the video on this, very awesome. Can't wait till you get it coded!!
Reply
HI, Can you please share the TOS script??
Reply
I can't, the concept is here, use that and develop it yourself. Sorry
Reply
welcome back!
Reply
Thank you for the indicator. ^^
Reply
Great code man. I am using it with huge confidence here in TV. But I am also trying to translate this to Delphi, in another platform (Brazil). And the line 4 ("haopen = na(haopen) ? (open + close) / 2 : (haopen + haclose) / 2"), I cannot understand and code this appropriately in Delphi. The way I do led to wrong results. Could you help me?
Thanks.
Reply
melhoretto PRO melhoretto
I´ve solved the problem in december. After "dissect" and simulate step by step, the result was exactly like this one. With little differences to the original by the book author. But just ok.
Reply
LOOKING FOR TTM_TREND for autotrading capatilibty.
I am looking for this indicator coded for thinkorswim.
I would like to use in for auto entry and auto stop in trading, but the TTM_TREND does not allow that (only in charting or scanning)
So, i would need to create custom code.
Reply
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out