misc
This commit is contained in:
parent
5af8896e40
commit
4fa8babccc
@ -1,4 +1,4 @@
|
|||||||
//@version=5
|
//@version=4
|
||||||
indicator("DrNiki's Market Nuker", shorttitle="DrNiki's Market Nuker", overlay=true)
|
indicator("DrNiki's Market Nuker", shorttitle="DrNiki's Market Nuker", overlay=true)
|
||||||
|
|
||||||
// Input for Indicators
|
// 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(totalLongPoints, title="Total Long Points", color=color.blue)
|
||||||
plot(totalShortPoints, title="Total Short Points", color=color.orange)
|
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
|
||||||
|
@ -28,6 +28,11 @@ wt2 = ta.sma(wt1, 4)
|
|||||||
|
|
||||||
//calculate obv
|
//calculate obv
|
||||||
obv = ta.obv(close, volume)
|
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
|
// Initialize points for BTCUSDT.P
|
||||||
longPointsRSIBTC = close > close[1] ? 1 : 0
|
longPointsRSIBTC = close > close[1] ? 1 : 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user