HPotter

TTM Scalper Indicator v2.0

4742 10 488
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 v2.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])))
clr_s = iff(triggerSell and buySellSwitch[1] == false, 1, iff(triggerBuy and buySellSwitch[1], 0, nz(clr_s[1])))
clr = iff(clr_s == 0 , green , red)
plot(SBS, color=clr, title="TTM", style = circles, linewidth = width)
JimFred
2 years ago
Thanks for sharing - can I presume the green dots are buy signals, the red, sell?
Reply
IvanLabrie PRO JimFred
2 years ago
I think they are the opposite?
Reply
HPotter PRO JimFred
2 years ago
Theoreticaly - yes )
Reply
sigmadict
2 years ago
Can you give us more info on how to use the dots please ?
Reply
HPotter PRO sigmadict
2 years ago
Sorry, I have not this information.
Reply
sigmadict HPotter
2 years ago
i found it on TTM site, thank anyway! are the colors correct ?
Reply
HPotter PRO sigmadict
2 years ago
For scalpint - yes, for extraday - no ))
Reply
pkittali
2 years ago
This is a bullshit indicator. I downloaded the TTM scalper for Ninjatrader and the output is totally wrong. This lazy bastard couldnt program proper plot (red for buy and green for sell), I wasted time reversing this shitty program to NT. Friends dont use this. I wish I could post some screenshot of how it looks NT. Spend sometime reading Carter's book and you will figure out. Dont rely on this crap!!
Reply
VishalDesai
a year ago
Change color to green to red and red to green.
Reply
sameer_patel18in
4 months ago
someone please share code for TTM trend Indicator....its awesome to predict anything using TTM trend indicator and TTM queeze ..
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 Account and Billing Sign Out