♥ 0 |
I know I can use the VolumeAvg in the lower studies section to show me the candle volume I’m searching for. However, I’m trying to get this on the price part of the chart. I currently can tell 30 day average (can customize the time), Show today’s volume, percentage of 30 day, unusual volume (can customize the %), 30 bar avg, and current bar. Now the current bar shows the last bar on the chart whether it’s an hourly chart or daily chart, etc. What I want to be able to do is hover over any candle and see the volume if that is possible. Here is my code link: http://tos.mx/Kz8Nc8
Marked as spam
|
Private answer
The only way to display the data for a candle you are hovering over with the mouse, is to use a plot statement. It is not possible to display that value in a chart label. Because thinkscript has no interface to enable the code to “see” what the user is pointing to with the mouse. Marked as spam
|
|||||||||||
Private answer
My second answer is in response to an additional question asked by Ryan in the comments section of my last email. On 4/24/18 Ryan asked:
Here is the entire text of Ryan’s code:
His year-long daily average is computed on this line:
In order to force this to read from the daily time frame when the chart is set to a LOWER time frame you will modify that line of code to this:
Give it a try and let us know how it goes. (this will cause an error when plotted on a time frame higher than daily) Marked as spam
|
Please log in to post questions.
I simplified the code some when finding the average and can now input the length whether I want 30 days or more or less. Here is an updated link of the code. http://tos.mx/Vd47ba
Here’s a screen shot:
https://www.dropbox.com/s/6e5ox0nt2ri57ir/Candle%20Volume.png?dl=0