UDAY_C_Santhakumar

UCS_TTM - Reversion Bands

Ok, Here we go - Version 1 of TTM Reversion Band goes live.

Link to TTM Reversion Band - www.tradethemarkets....products/item343.cfm

Link to TTM Reversion Band Guide - kb.simplertrading.com/reversion-bands/

John Carters Mastering the trade - www.amazon.com/Maste...niques/dp/0071775145
For the amount of information this has, the price tag is not hefty.

John's RTM Chapter Synopsis - www.tradethemarkets....eversion-to-mean.cfm

What did I modify?

1. Automated the Daily + and Intraday settings. So Switching to intraday will change the setting automatically.

2. Added text callouts for RTM condition
a. John Carter's Indicator
b. Slope Based (my addition).


Future Improvement Planned.

1. Will Convert this into a system based on John's Indicator from TS.

2. Custom Options for Slope and MA setting for Trade filter.

Uday C Santhakumar
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
// Created by UCSgears
// Adopted from TTM Reversion Bands
// Added a little touch


study(title="UCS_TTM - Reversion Bands", shorttitle="UCS_TTM-RTM", overlay=true)

// Defining Timeframe and Parameters
a = isdwm ? 1 : 0
b = isintraday ? 1 : 0

// TTM - Revertion to the Mean Band - INPUTS
z = input(0, title = "Offset")
usesl = input(true, title = "RTM against Slope (UCSgears Addition)", type=bool)
length = a == 1 ? 13 : 25
atrlen = a == 1 ? 13 : 25
mult = a == 1 ? 1.5 : 2.5
range =  tr

// Calculations
ma = ema(close, length)
rangema = ema(range, atrlen)
upper = ma + rangema * mult
lower = ma - rangema * mult

// All Plots
plot(upper, color=purple, title="Upper Channel", offset = z)
plot(ma, color=red, title="Middle Line", offset = z)
plot(lower, color=purple, title="Lower Channel", offset = z)

//Slope Definition
slope = (ma - ma[5])/5

sh = highest(slope, 250)
sl = lowest(slope, 250)
sm = 0 /////////////////////////////////////////////////////////////////////////////////////////////////(sh+sl)/2

pup = slope > sm ? 1 : 0
ndn = slope < sm ? 1 : 0

plotshape(usesl ? pup : na, style = shape.triangleup, color = green, location = location.bottom, title = "Positive Slope", transp = 0)
plotshape(usesl ? ndn : na, style = shape.triangledown, color = red, location = location.top, title = "Negative Slope", transp = 0)

// Condition for Dots
dota = (high > upper) and (high < upper)[1] ? upper : na
dotb = (low  < lower) and (low  > lower)[1] ? lower : na
dotbsp = pup == 1 ? dotb : na
dotasn = ndn == 1 ? dota : na

plotshape(usesl ? dotasn : dota, style = shape.circle, location = location.abovebar, color = fuchsia, title = "RTM UP", text = "RTM - UP \n SHORT", textcolor = fuchsia, transp = 0)
plotshape(usesl ? dotbsp : dotb, style = shape.circle, location = location.belowbar, color = blue, title = "RTM Down", text = "RTM - DOWN \n LONG", textcolor = blue, transp = 0)