♥ 0 |
Hi Pete. I am referencing a previous post Questions – Equanimous Trading – Hahn-Tech, LLC in which you created a script that is working great. *see screenshot I am attempting to do the same thing with VWAP so that when CLOSE < VWAP there is red from top of chart down to VWAP line, and if CLOSE > VWAP there is green from bottom of chart. My terrible Script below: def OverVWAP = close is greater than reference VWAP().”VWAP” ;
Marked as spam
|
Private answer
The link you provided in your question was not a direct link to the previous post you mentioned. It was a link to a page which lists all of the questions you have posted. Since this is subject to change I will provide a direct link to the previous post here: https://www.hahn-tech.com/ans/invert-shading-on-moving-average-columns/ The entire key to this technique is contained entirely within the last two lines of code from that previous post. I have included them here so you understand which portion of the code is doing ALL the work.
There are many errors in the code you provided so I will be making extensive changes to it so that it will work correctly.
The only thing you needed to do is to plot the VWAP value and replace the references to maOne with the name of the plot "vwapValue". There were a few other minor tweaks but I will let you discover those on your own. Marked as spam
|
Please log in to post questions.