HPotter

TTM Scalper Indicator

654 6 47
TTM             scalper indicator of John Carter’s Scalper Buys and Sells. The methodology
is a close approximation of the one described in his book Mastering the Trade.
The book is highly recommended. Note the squares are not real-time but will
show up once the third bar has confirmed a reversal.
Remove from Favorite Scripts Add to Favorite Scripts
////////////////////////////////////////////////////////////
//  Copyright by HPotter v1.0 29/09/2014
// TTM scalper indicator of John Carter’s Scalper Buys and Sells. The methodology 
// is a close approximation of the one described in his book Mastering the Trade. 
// The book is highly recommended. Note the squares are not real-time but will 
// show up once the third bar has confirmed a reversal. 
////////////////////////////////////////////////////////////
study(title="TTM scalper indicator", overlay = true)
width = input(2, minval=1)
triggerSell = iff(iff(close[1] < close,1,0) and (close[2] < close[1] or close[3] <close[1]),1,0)
triggerBuy = iff(iff(close[1] > close,1,0) and (close[2] > close[1] or close[3] > close[1]),1,0)
buySellSwitch = iff(triggerSell, 1, iff(triggerBuy, 0, nz(buySellSwitch[1])))
SBS = iff(triggerSell and buySellSwitch[1] == false, high, iff(triggerBuy and buySellSwitch[1], low, nz(SBS[1])))
plot(SBS, color=blue, title="TTM", style = circles, linewidth = width)
This script was updated: TTM Scalper Indicator v2.0
joe_vijay PRO
2 years ago
All the dots are blue. Which one is buy/sell?
Reply
HPotter PRO joe_vijay
2 years ago
I tried make it colored, but it is not ready. I think it should work as support and resistance line.
Reply
HPotter PRO joe_vijay
2 years ago
I fixed it. For colored dots, You can change last line 14 on the this code: clr_s = iff(triggerSell and buySellSwitch == false, 1, iff(triggerBuy and buySellSwitch, 0, nz(clr_s)))
clr = iff(clr_s == 0 , green , red)
plot(SBS, color=clr, title="TTM", style = circles, linewidth = width)
Reply
HPotter PRO HPotter
2 years ago
snapshot
Reply
HPotter PRO HPotter
2 years ago
snapshot
Reply
HPotter PRO joe_vijay
2 years ago
TTM Scalper Indicator v2.0
Republic
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener 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 Billing Sign Out