Source for Drawing Tools Plus Addin
Author: bgood
Creation Date: 3/7/2016 2:51 PM
profile picture

bgood

#1
I am wondering about building an addin. I would like to build something like the channel that is found in the Drawing Tools Plus Addin, Are there instructions how to build an Addin like Drawing Tools Plus, and can that source code be made available in the WIKI?

Bryce
profile picture

Eugene

#2
QUOTE:
Are there instructions how to build an Addin like Drawing Tools Plus

Fidelity did not release any documentation on building Chart Drawing Objects.
profile picture

bgood

#3
I would like to build something like the MarketDelta Profile for volume. Doing that would not be hard given the bar-range was specified. I have already built a first approximation for the "Long Term Volume Profile" and it is very useful. Even though Fidelity did not release documentation for building "Chart Drawing Objects", can the sources be made available? Who would I ask at Fidelity to make the documentation available?
profile picture

Cone

#4
Volume Profile isn't a job for a manual drawing tool. You already have what's required in WealthScript. So, you can do it in a script, or you can create an Add-in whose method can be called from any script.

Actually, I'm about 99% sure that a version Volume Profile has already been created in a script.. I just can't seem to locate it at the moment.
profile picture

Eugene

#5
QUOTE:
Actually, I'm about 99% sure that a version Volume Profile has already been created in a script.. I just can't seem to locate it at the moment.

Here's available volume-based studies:

* UnusualVolumeOnPricePane as Mountain chart
* Price Volume Distribution (bgood has just helped to fix a bug in it)
* Price/Volume Heat Map
profile picture

Cone

#6
I was so sure that this was a script included in the installation that I didn't even think about looking in the Wiki. When I couldn't find it in the staging folder, I converted the v4 code again... and I found probably the same bug you're talking about (Volume index within a loop).

Anyway, since I just did it again... here's a scripted version:


CODE:
Please log in to see this code.
profile picture

bgood

#7
Hi guys,

If you look at the MarketDelta Profile for volume, you will notice that it allows you to select a range of bars, then it provides the profile for only those bars and leaves that data on the chart. Later in time, you can do the same thing again on different bars and both profiles are visible. The volume profile also marks the Control-Point etc. for each profile on the chart. This is NOT the same as the PriceVolumeDist() which applies to the volume summation over the range of all bars being plotted. I believe it really is a drawing tool to accomplish this task. From what I am observing, this appears to be really useful information! It should also be really simple given all of the tools in WLP.
profile picture

bgood

#8
A picture is worth a thousand words. What you have is something like the attached image that occurs in multiple places in a chart:

profile picture

Cone

#9
At this point in time, it's highly unlikely that Fidelity generate public documentation for the drawing tool interface. You can submit your request for documentation with Fidelity phone support, but being frank, there are just too many people/divisions that would have to get involved in that project for it to actually happen at this point in time.

I've shown you how to do it in WealthScript, and you can precisely control the range of bars used. The easiest way to work with it in different chart areas would be to create a slider for the number of bars and adjust the end date using the data loading control. I've just edited the script above to do that for you. It marks the chart with a vertical line on the first bar considered in the distribution.