Breadth Indicator Plots
Author: vaslowd
Creation Date: 3/29/2011 5:01 PM
profile picture

vaslowd

#1
I am interested in various breadth indicator plots such as:
1) Bullish Percent for a given dataset on a Point and Figure Chart.
To do this I thought one possibility would be to use the Pricepane in which the Symbol is a dummy symbol loaded with zero's and placed in the DataSet and the BP is a PnF indicator. I don't know how to create a dummy symbol loaded with my choice of data. There are some threads that talk about a "fake symbol", but best I can tell they to not address how to create one.

2) A comparison of breadth indicators for different DataSets for plotting on a single chart.
Here the problem I have is how to select more than one DataSet, each of which will be used to generate a different breadth indicator, for a use in a single strategy. So I need something like SetContext( DataSet A) ... RestoreContext and then SetContext(DataSet B) etc.

3. It would be helpful if the DataSets could be organized into a tree, similar to Fidelity industry and subindustry classification tree. And then if one could press a single button to import the Fidelity symbols organized by industry and subindustry into DataSets, wow.

Thanks.
profile picture

Eugene

#2
2) Two words: Index Manager. Create your breadth indicators using it, then plot them with GetExternalSeries/GetExternalymbol.
profile picture

Cone

#3
1. Hmmm, I thought I had published this. (Requires Community.Components Addin);
CODE:
Please log in to see this code.



2) See Tools > Index Manager. Hit F1 for Help. We're still waiting on Fidelity to publish the API for Index Definitions, however. So for the mean time, we're stuck with the ones that are shown in the tool.

3) I don't follow you on this one, especially the part about importing by subindustry since you can already do that when creating a DataSet. Maybe you could sketch out what it looks like.
profile picture

Eugene

#4
2. But if anyone has an idea worth implementing as an IndexDefinition, feel free to ask: I already have some experience coding them.
profile picture

Cone

#5
Thanks for offering to start Community.IndexDefinitions! I'll send you a list later today :)

You could start with BPI above. It would be better as an index definition than a script.
profile picture

Eugene

#6
At your service. It's been four months since I released a new extension, let's fill that gap.
profile picture

vaslowd

#7
Thanks.

1) Yes, the index manager is a powerful way to display an index definition. Then with the ChartStyle tab I can get the PnF chart of the bullish percent index, exactly what I want. Adding bullish percent to the index definitions, and perhaps TRIN, would be helpful!

It would be a great addition if there were a way I could make my own index definition. Just a thought.

2) Thanks for the suggestion on GetExternalSeries. I haven't looked exhaustively, but I didn't find a good example of how to use GetExternalSeries. I thought I saw an example in an older version of WL (I switched from Amibroker last year when WL6 was released - because of the use of the standardized C# language and access to Fidelity's fundamental data). If you have a sample of how to use GetExternalSymbols, that would be helpful.

How would I like to use GetExternalSymbols? I would like to devise ways to computationally screen the (GICS) 10 sectors, 24 industry groups, 69 industries, and 165 subindustries, not impossible for a computer!

Drag and drop of a symbol or index into chart would be nice (another thought), though I saw a comment in another forum that that was rather difficult.

3) As far as I know the WL Datasets column display has 2 layers, namely, the name of the dataset and the corresponding list of symbols. 165 subindustry Datasets would be more manageable arranged in the form of a tree with a trunk(sector), branches(industry groups), smaller branches(industries)... Is this already possible and have I missed something here?



profile picture

vaslowd

#8
In 2) I meant GetExternalSeries, not GetExternalSymbols.
profile picture

Eugene

#9
3) I'd forget about it, not going to happen any time soon (major architectural change).
profile picture

vaslowd

#10
Sorry, I asked too many questions in one post. Is it a major architectural change to

1) Create a DataSet tree, or

2) Be able to change DataSets from within the code?

Thanks.
profile picture

Cone

#11
1. Creating DataSets from a script is not currently supported. See Is it possible to make actions on DataSets programmatically? near the bottom of the page.

2. Use GetExternalSymbol (see QuickRef) to access symbols in any DataSet.
profile picture

Eugene

#12
QUOTE:
1) Bullish Percent for a given dataset on a Point and Figure Chart.

Better late than never... The BPI (Bullish Percent Index) is now a part of our MS123 IndexDefinitions library. No programming required.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).