커뮤니티
지표 부탁 드립니다
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © khbajakoa91d88c9b75847d0
//@version=5
indicator("Net Liquidity signal")
// BUYING VOLUME AND SELLING VOLUME //
buyVolume = high == low ? 0 : volume * (close - low) / (high - low)
sellVolume = -(high == low ? 0 : volume * (high - close) / (high - low))
netVolume = buyVolume + sellVolume
plot(volume, style=plot.style_columns, color=#00897B46, title="UPPER V") // shows whole volume above
plot(-volume, style=plot.style_columns, color=#FF525246, title="LOWER V") // shows whole volume below
plot(sellVolume, style=plot.style_columns, color=color.red, title="SELL V") // shows sell volume
plot(buyVolume, style=plot.style_columns, color=color.teal, title="BUY V") // shows buy volume
plot(netVolume, style=plot.style_columns, color=netVolume > 0 ? color.rgb(9, 237, 55) : color.red, title='net') // shows buy volume
b = netVolume > 0 ? netVolume : 0
length1=input(2,"BuyMaMult")
BL=input(22,"BuyMaLength")
mab = length1*ta.sma(b, BL)
plot(mab)
s = netVolume < 0 ? netVolume : 0
length=input(2,"SellMaMult")
SL=input(22,"SellMaLength")
mas = length*ta.sma(s, SL)
plot(mas)
cum=math.sum(netVolume,10)
//plot(cum,color=color.white)
long=netVolume>mab and netVolume[1]<0 and netVolume[2]<0 and netVolume>-(netVolume[1])and netVolume[1]>netVolume[2]
short=netVolume<mas and netVolume[1]>0 and netVolume[2]>0 and -netVolume>(netVolume[1])and netVolume[1]<netVolume[2]
plotshape(long ,location=location.bottom,size=size.small,style=shape.triangleup,color=color.green)
plotshape(short ,location=location.top,size=size.small,style=shape.triangledown,color=color.red)
alertcondition(long,"Buy")
alertcondition(short,"Sell")
no=input(3,"no of candles")
plot(math.sum(netVolume,no),color=color.yellow)
답변 1
예스스탁 예스스탁 답변
2025-12-22 09:43:54