This commit is contained in:
Dobromir Popov 2024-01-12 15:53:51 +02:00
parent 5af8896e40
commit 4fa8babccc
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//@version=5
//@version=4
indicator("DrNiki's Market Nuker", shorttitle="DrNiki's Market Nuker", overlay=true)
// Input for Indicators
@ -73,3 +73,10 @@ for i = 0 to array.size(pairs) - 1
plot(totalLongPoints, title="Total Long Points", color=color.blue)
plot(totalShortPoints, title="Total Short Points", color=color.orange)
// BUYING VOLUME AND SELLING VOLUME //
buyVolume = iff( (high==low), 0, volume*(close-low)/(high-low))
sellVolume = iff( (high==low), 0, volume*(high-close)/(high-low))
plot(volume, style=plot.style_columns, color=color.red, title="SELL V") // shows total volume (!)
plot(buyVolume, style=plot.style_columns, color=color.teal, title="BUY V") // shows only buy volume

View File

@ -28,6 +28,11 @@ wt2 = ta.sma(wt1, 4)
//calculate obv
obv = ta.obv(close, volume)
//15:38:24 Error at 30:7 Could not find function or function reference 'ta.obv'
//calculate mfi
mfi = ta.mfi(high, low, close, volume)
// Initialize points for BTCUSDT.P
longPointsRSIBTC = close > close[1] ? 1 : 0