# TTM Scalper Indicator

2946 visualizzazioni
2946
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.
////////////////////////////////////////////////////////////
//  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)
plot(SBS, color=blue, title="TTM", style = circles, linewidth = width)
DONATE/TIP

BTC: 3FKWwtaYrf5NHZzaCi1fyAfQj7XSgtyCqe
All the dots are blue. Which one is buy/sell?
Rispondi
joe_vijay
I tried make it colored, but it is not ready. I think it should work as support and resistance line.
Rispondi
joe_vijay
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)
Rispondi
HPotter
Rispondi
HPotter
Rispondi
joe_vijay
Republic
Rispondi