Mehrdad banakar (volume / candle size)
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Mehrdadcoin

//@version=4
study("volume/candle size")

t=input(hl2,title="candles")

malengh=input(360)
zaribemasignal1=input(2.00)
zaribemasignal2=input(1.00)


bozorg_kardan_dasti_makhraj=input(2000)
kamkardansefr=input(7)


hamiduskuyi=(volume*hl2)
yilmaz=high-low+hl2/bozorg_kardan_dasti_makhraj
mehrdad=yilmaz/(hl2)

jam1=(hamiduskuyi/(pow(10,kamkardansefr)*mehrdad))


ma1=sma(jam1,malengh)*zaribemasignal1
plot(ma1,color=color.aqua)

ma2=sma(jam1,malengh)*zaribemasignal2
plot(ma2,color=color.aqua)

plot(jam1,color=jam1>ma1? color.new(color.red, 0):jam1>ma2?color.new(color.yellow, 0):jam1<ma2?color.new(color.gray, 0):na,style=plot.style_columns)
bgcolor(close < open ? color.new(color.red, 80) : color.new(color.green, 80))

 