The Madras Traders All Indicators

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

The Madras Traders all indicators

Supply and Demand Indicator

study("Madras Supply and Demand ", overlay=true)

//tf = input(title='Timeframe:', type=string, defval='D')

DD = input(true, title="Day")

WW = input(false, title="Week")

MM = input(false, title="Month")

window= 10

tf = 'D'

tf1 = 'W'

tf2 = 'M'

//DAY

range1 = security(tickerid, tf, sma(high[1]-low[1],05))

range2 = security(tickerid, tf, sma(high[1]-low[1],10))

middle = security(tickerid, tf, open)

upper = middle + 0.5*range1

upper1 = middle + 0.5*range2

lower = middle - 0.5*range1

lower1 = middle - 0.5*range2

plot11=plot( DD? upper :na, title='upper line', color=red, linewidth=1)

plot12=plot(DD? lower : na, title='lower line', color=red, linewidth=1)


plot13=plot(DD? upper1 : na, title='upper line', color=red, linewidth=1)

plot14=plot(DD? lower1 : na, title='lower line', color=red, linewidth=1)

fill(plot11, plot13, red)

fill(plot12, plot14, red)

//WEEK

rangeW1 = security(tickerid, tf1, sma(high[1]-low[1],05))

rangeW2 = security(tickerid, tf1, sma(high[1]-low[1],10))

middleW = security(tickerid, tf1, open)

upperW = middleW + 0.5*rangeW1

upperW1 = middleW + 0.5*rangeW2

lowerW = middleW - 0.5*rangeW1

lowerW1 = middleW - 0.5*rangeW2

plot21=plot(WW? upperW : na, title='upper line', color=#4287f5, linewidth=1)

plot22=plot(WW? lowerW : na, title='lower line', color=#4287f5, linewidth=1)

plot23=plot(WW? upperW1 : na, title='upper line', color=#4287f5, linewidth=1)

plot24=plot(WW? lowerW1 :na, title='lower line', color=#4287f5, linewidth=1)

fill(plot21, plot23, #4287f5)

fill(plot22, plot24, #4287f5)

//MONTH

rangeM1 = security(tickerid, tf2, sma(high[1]-low[1],05))

rangeM2 = security(tickerid, tf2, sma(high[1]-low[1],10))

middleM = security(tickerid, tf2, open)

upperM = middleM + 0.5*rangeM1

upperM1 = middleM + 0.5*rangeM2


lowerM = middleM - 0.5*rangeM1

lowerM1 = middleM - 0.5*rangeM2

plot31=plot(MM? upperM : na, title='upper line', color=green, linewidth=1)

plot32=plot(MM? lowerM : na, title='lower line', color=green, linewidth=1)

plot33=plot(MM? upperM1 :na, title='upper line', color=green, linewidth=1)

plot34=plot(MM? lowerM1 :na, title='lower line', color=green, linewidth=1)

fill(plot31, plot33,green)

fill(plot32, plot34, green)


Advanced VWAP
//@version=4
study("Advanced Vwap", overlay=true)

length = input(title="ATR Period", type=input.integer, defval=21)


mult = input(title="ATR Multiplier", type=input.float, step=0.1, defval=6.3)
wicks = input(title="Take Wicks into Account ?", type=input.bool, defval=false)
showLabels = input(title="Show Buy/Sell Labels ?", type=input.bool, defval=true)
highlightState = input(title="Highlight State ?", type=input.bool, defval=true)

atr = mult * atr(length)

longStop = close - atr


longStopPrev = nz(longStop[1], longStop)
longStop := (wicks ? low[1] : close[1]) > longStopPrev ? max(longStop, longStopPrev) : longStop

shortStop = close + atr


shortStopPrev = nz(shortStop[1], shortStop)
shortStop := (wicks ? high[1] : close[1]) < shortStopPrev ? min(shortStop, shortStopPrev) :
shortStop
src1 = close, len = input(100, minval=1)
ma = vwma(src1, len)
dir = 1
dir := nz(dir[1], dir)
dir := dir == -1 and (wicks ? high : close) > shortStopPrev ? 1 : dir == 1 and (wicks ? low : close) <
longStopPrev ? -1 : dir

longColor = color.green
shortColor = color.red
noneColor = color.new(color.white, 100)

longStopPlot = plot(dir == 1 ? (longStop+ma)*0.5 : na, title="Long Stop", style=plot.style_linebr,


linewidth=2, color=longColor)
shortStopPlot = plot(dir == 1 ? na : (shortStop+ma)*0.5, title="Short Stop",
style=plot.style_linebr, linewidth=2, color=shortColor)

midPricePlot = plot(ohlc4, title="", style=plot.style_circles, linewidth=0)

longFillColor = highlightState ? (dir == 1 ? longColor : noneColor) : noneColor


shortFillColor = highlightState ? (dir == -1 ? shortColor : noneColor) : noneColor
JFT_Swing Indicator

study("JFT_Swing", overlay=true)
//tf = input(title='Timeframe:', type=string, defval='M')
f = input( title="Length", type=integer,defval=1,minval=1, maxval=100)
k = input( title="Offset", type=integer,defval=1,minval=0, maxval=100)
MM = input(true, title="Month")
window= 10
tf2 = 'M'
//MONTH

rangeM1 = security(tickerid, tf2, sma(high[k]-low[k],f))


rangeM2 = security(tickerid, tf2,sma(high[k]-low[k],f))
middleM = security(tickerid, tf2, open)
upperM = middleM + 0.61803399*rangeM1
upperM1 = middleM + 0.3819660112500*rangeM2
lowerM = middleM - 0.61803399*rangeM1
lowerM1 = middleM - 0.3819660112500*rangeM2

plot31=plot(MM? upperM : na, title='upper line', color=#761e9e, linewidth=1)


plot32=plot(MM? lowerM : na, title='lower line', color=green, linewidth=1)
plot33=plot(MM? upperM1 :na, title='upper line', color=#761e9e, linewidth=1)
plot34=plot(MM? lowerM1 :na, title='lower line', color=green, linewidth=1)
//plot35=plot(MM? upperM3 :na, title='upper line', color=green, linewidth=1)
//plot36=plot(MM? lowerM3 :na, title='lower line', color=green, linewidth=1)
fill(plot31, plot33,#bf39bb)
fill(plot32, plot34, #39bfbd)
JFT_Band Indicator
/@version=5
indicator(shorttitle="BB", title="Bollinger Bands", overlay=true, timeframe="",
timeframe_gaps=true)
length = input.int(46, minval=1)
src = input(close, title="Source")
mult = input.float(0.35, minval=0.001, maxval=50, title="StdDev")
basis = ta.sma(src, length)
dev = mult * ta.stdev(src, length)
upper = basis + dev
lower = basis - dev
offset = input.int(0, "Offset", minval = -500, maxval = 500)
plot(basis, "Basis", color=#FF6D00, offset = offset)
p1 = plot(upper, "Upper", color=#2962FF, offset = offset)
p2 = plot(lower, "Lower", color=#2962FF, offset = offset)
fill(p1, p2, title = "Background", color=color.rgb(33, 150, 243, 95))
Sumarry of madras trader course , just use indicators jft band , supply demand and jft band as
resistance and support for intraday and JFT Swing for stock swing trading that’s it.
My review of course is 0.5/5 stars.

You might also like