커뮤니티

지표 부탁 드립니다

프로필 이미지
매치다2
2025-12-19 21:11:52
104
글번호 229221
답변완료

// 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

안녕하세요 예스스탁입니다. var : buyVolume(0),sellVolume(0),netVolume(0); buyVolume = iff(high == low, 0 , volume * (close - low) / (high - low)); sellVolume = -IFf(high == low , 0 , volume * (high - close) / (high - low)); netVolume = buyVolume + sellVolume; plot1(volume, "UPPER V",LightGreen); plot2(-volume, "LOWER V",Pink); plot3(sellVolume, "SELL V",Red); plot4(buyVolume, "BUY V",Teal); plot5(netVolume, "net",iff(netVolume > 0,Lime, red)); input : length1(2),BL(22); input : length(2),SL(22); var : b(0),mab(0),s(0),mas(0); var : cum(0),long(False),short(False),tx(0); b = iff(netVolume > 0 , netVolume , 0); mab = length1*ma(b, BL); s = iff(netVolume < 0 ,netVolume , 0); mas = length*ma(s, SL); plot6(mab); plot7(mas); cum = AccumN(netVolume,10); 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]; if long Then { tx = Text_New(sDate,sTime,L,"▲"); Text_SetStyle(tx,2,0); Text_SetColor(tx,Green); } if short Then { tx = Text_New(sDate,sTime,H,"▼"); Text_SetStyle(tx,2,1); Text_SetColor(tx,Red); } input : no(3); plot8(AccumN(netVolume,no),"no",yellow); 즐거운 하루되세요