TradingView
cheatcountry
Aug 22, 2023 2:41 PM

Velocity Acceleration Convergence Divergence Indicator [CC] 

Apple Inc.NASDAQ

描述

I created the Velocity Acceleration Convergence Divergence Indicator, and it is quite a mouthful if I do say so. I based this script on my two previous scripts: Velocity Indicator and Velocity Acceleration Indicator. This acts like a typical MACD but is much faster with the responses. This indicator is created by finding the difference between the Velocity Indicator and Velocity Acceleration Indicator to determine the overall trend strength of the underlying stock. Like the other scripts, I coded the general buy and sell signals the same, so you would want to buy when the indicator crosses over above the zero midline and sell when it crosses below the zero midline. I have also used the same colors, so darker colors for strong signals and lighter colors for normal signals.

Please let me know if you would like me to publish another script or if you want something custom done!
评论
A_Traders_Edge
So ive been thinking of an indicator that you might be good for that NO ONE else has made yet. You know how using varip doesnt allow you to look at backtested data? Well this is just one way to do that and hadnt had the time to make it yet. So allanster created a script that shows how you can input external data as an input using the string.input(). If on every bar you set an alert that would fire without actually notifying you and within the dynamic alert message it does something like records the unix date from the any particular bar in the past and (if you wanted to see how good the historical alerts would have been) then it would count the bar index of the unix time as bar_index 1 and with every subsequent alert that would trigger from the indicator the alert message would include all the bar index's of the previous alerts as well as adding the newest bar_index when an alert triggers OR (if you wanted to draw all of the historical data from the indicator) it would include data from the indicator on every bar in the message (as well as all the previous bars data of the indicator) it would send an alert on every bar adding to the alert message the data of the indicator from all previous bars. Then all you would have to do is plug in the alert message in the string.input() function and using a loop (or another way) it would go back and draw the indicator for all the previous bars or some plot showing where all the historical alerts would have occurred. Think youd be up for something like that to finally give the community the ability to see how historically an indicator using varip would look in the past?
cheatcountry
@A_Traders_Edge, You can send me a pm about this idea and I can look into it further. I can also reach out to allanster to get his opinion since he has done the initial work
OrcChieftain
Is this relative? It looks so.

The problem I had with MACD is that it always shows all-time highs when BTC or anything makes a new time high. I prefer an indicator that is centered around 0 or 50. This looks really good!
cheatcountry
@OrcChieftain, Thank you very much!
burgercrisis
To lock this in a range you can apply a roofing filter like so:

Kval = input.float(0.0,step=0.05,minval=0,maxval=1) esize2 = 1.0 //, title = "Size", inline = "quotient3", group = "EOT 3 (Yellow Line)") ey2 = 00.0 //, title = "Y axis", inline = "quotient3", group = "EOT 3 (Yellow Line)") Roofed(Filt3, K13) => X3 = 0.00 Quotient5 = 0.00 Quotient6 = 0.00 K33 = K13 * -1 Peak3 = 0.0 //Fast Attack - Slow Decay Algorithm Peak3 := .9995 * nz(Peak3[1]) if math.abs(Filt3) > Peak3 Peak3 := math.abs(Filt3) Peak3 //Normalized Roofing Filter if Peak3 != 0 X3 := Filt3 / Peak3 X3 Quotient5 := (X3 + K13) / (K13 * X3 + 1) Quotient6 := (X3 + K33) / (K33 * X3 + 1) q5 = Quotient5 * esize2 + ey2 q6 = Quotient6 * esize2 + ey2 [q5, q6] float vacd = velocityAvg - accelerationAvg [d1, d2] = Roofed(vacd, Kval) hline(0) gg=(d1+d2)/2


replace instances of "vacd" with this. you should be able to figure it out :)
burgercrisis
Wow. This is one of your best. Amazingly accurate on small timeframes.
更多