Last active
September 22, 2021 11:55
-
-
Save diyism/2ccb69bd90058fefdf1844343e719fae to your computer and use it in GitHub Desktop.
ema of velocity(pine script of tradingview)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//@version=4 | |
study("ema of velocity") | |
v1=pow(ohlc4*100-ohlc4[1]*100, 2) | |
delta=(v1>7000?7000:v1)*(ohlc4>ohlc4[1]?1:-1) | |
//delta=ohlc4*100-ohlc4[1]*100 | |
//phi^16 minutes is the macro line, phi^13 minutes is the meso line, phi^10 minutes is the micro line | |
ema4delta=security(syminfo.tickerid, "1", ema(delta, round(pow(1.618034, 10))))*10 | |
ema2ema=security(syminfo.tickerid, "1", ema(ema4delta, round(pow(1.618034, 10)))) | |
plot(ema2ema, color = color.green, style=plot.style_line) | |
plot(ema4delta, color = color.red, style=plot.style_line) | |
plot(0, color = color.blue) | |
plot(-5000, color = color.green, style=plot.style_line) | |
plot(-1000, color = color.blue, style=plot.style_circles) | |
plot(1000, color = color.blue, style=plot.style_circles) | |
plot(5000, color = color.green, style=plot.style_line) | |
//plot(delta, color = color.black) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment