StockFetcher Forums · General Discussion · How to draw on volume plot<< >>Post Follow-up
nicksten319
9 posts
msg #138127
Ignore nicksten319
modified
9/12/2017 2:18:30 PM

Searched for this but could not answer.... Is there a way to draw something on the volume plot? For example, if you request average volume, it gets drawn on the volume plot. I have set a variable to show the highest volume in the last 60 days. The variable gives the correct answer but I cannot figure out how to have it drawn directly on the volume plot instead of a separate plot:

Fetcher[
set {volhigh, volume 60 day high}
draw volhigh
draw average volume(30)
price between 5 and 5.1
]



four
5,087 posts
msg #138134
Ignore four
9/13/2017 12:52:04 AM

Fetcher[
price between 5 and 5.1
set {volhigh, volume 60 day high}
set{avgv, average volume(30)}

draw avgv on plot volhigh

]



graftonian
1,089 posts
msg #138139
Ignore graftonian
9/13/2017 10:38:49 AM

the best I could do was create my own volume plot:

Fetcher[
market is not OTCBB
set {volhigh, volume 60 day high}
set{dayvol, average volume(1)}
set{avgv, cema(dayvol, 30)}

plottype{dayvol,zerobar}
draw dayvol
draw volhigh on plot dayvol
draw avgv on plot dayvol
dayvol near volhigh
]



nicksten319
9 posts
msg #138143
Ignore nicksten319
9/13/2017 12:36:04 PM

Thanks both of you! So it seems like the only way to do it is create a new plot and then plot volume + average volume on *that* instead of trying to plot the 60 day high volume (in this case) onto the default volume plot.

graftonian
1,089 posts
msg #138152
Ignore graftonian
9/13/2017 2:50:05 PM

Glad to help. If you find a new way to add volume into the winning filter, do let us know.

data-miner
11 posts
msg #160058
Ignore data-miner
2/1/2023 8:56:21 AM

I came across your post as I was wanting to do the same thing, and I found this solution quite by accident in using your code. I don't know if it is supposed to work, but I am able to add what I am looking for to the main volume chart with this code. I want to draw 1.5 times the moving average, so I am taking half of it and adding it to the moving average volume statement.

Fetcher[

set{aav1x5, average volume(50) * .5}

and draw average volume(50) add aav1x5
AND DRAW average volume(50)
apply to symlist(ALGM)
]



data-miner
11 posts
msg #160060
Ignore data-miner
2/1/2023 12:13:27 PM

This is an attempt to match your example on to the top plot. I am using the average volume to get it on the plot, then subtracting out the avg volume and adding in your parameters.

Fetcher[
set {volhigh, volume 60 day high}
set {volhigh2, average volume(50) * -1}
set {volhigh3, volhigh2 + volhigh}

set{dayvol, average volume(1)}
set {avgv, cema(dayvol, 30)}
set {avgv2, average volume(30) * -1}
set {avgv3, avgv2 + avgv}




DRAW average volume(50) add volhigh3
DRAW average volume(30) add avgv3
APPLY TO SYMLIST(OXY)
]




StockFetcher Forums · General Discussion · How to draw on volume plot<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2022 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus


This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.