TradingView
muthushun
30 jan 2020 15:59

Boring & Explosive Candle - Muthu S 

TATA CONSULTANCY SNSE

Beskrivning

This Indicator marks Explosive candle (Black) and Boring Candle (Blue) on the chart based on various inputs like ATR Range, Legout Strength etc.

Versionsinformation

Removed ATR & Body Range input.
Code Optimization.
Kommentarer
techtrader29
Hey can i get the code for it
muthushun
@techtrader29, I can help u in coding.
cenagus
@muthushun, bro, may I ask the rule for explosive?
Indyantrade1
@techtrader29,

//@version=5

indicator('Supply Demand', overlay=true)

BcB_Ratio = input.int(50, title='Boring Candle Body <=(%)', minval=5, maxval=95)

C2BR = math.abs(open - close) * 100 / math.abs(high - low)

barcolor(C2BR <= BcB_Ratio ? color.blue : na)

mp = input(2.0, title='Multiplier for Explo.Mov.')
ratio = input(50, title='Range-Body Ratio for Explo.Mov.')
cand = input(100, title='Average Number of Candles for Explo.Mov.')

range_1 = ta.atr(cand)
candr = math.abs(high - low)
bodyr = math.abs(open - close)

barcolor(bodyr / candr >= ratio / 100 and candr >= range_1 * mp ? color.black : na, title='Explosive Move')
naeempawaskar
boss your indicator have on MT4 ?
muthushun
naeempawaskar
@muthushun, amibroker have
naeempawaskar
hi , youre indicator is awesome. can u add alert if zone created ?
how add alert ?
Mer