Hi Cone & Eugene,
I'd like to make a charts of market indicators. So I started to make a strategy for just the NYA.
I'm looking to add ".MB_TV.N" Total NYA Volume in a separate pane below the price. In the code below I've created the pane and called the symbol.
But, I can't find any thing on how to plot a second symbol on a chart. Where should I be looking?
Thanks for the help!
Tobey
CODE:
Please log in to see this code.
Size:
Color:
Hi Tobey,
You should be looking towards PlotSymbol in the QuickRef's Cosmetic Chart group.
Size:
Color:
By the way, if you're looking to program the "Hindenburg Omen", it's already done -
click here.
Size:
Color:
Hi Cone & Eugene,
Thanks! This code plots the total volume ok.
CODE:
Please log in to see this code.
To create a visual sense of the up down volume ratio on this volume chart I'd like to overlay a green bar of the (Up Volume - Down Volume) when the up volume is greater than the down volume. And a red bar of the (Down Volume - Up Volume) on days the down volume is greater than the up volume.
If I plot my two lines in the code above, 1) it changes the scale, 2) it plots the negative numbers too.
What do I need to do the setup data series with these kinds of conditions?
Once again I'm clueless and codeless
Thanks for the help
Tobey
Size:
Color:
QUOTE:
What do I need to do the setup data series with these kinds of conditions?
You'll need to loop bar by bar when applying individual colors to bars/DataSeries/panes. For a code example, see
SetBackgroundColor or
SetPaneBackgroundColor in the QuickRef (Cosmetic chart).
Size:
Color:
Hi Eugene,
Before I color it I need to plot the data.
This the logic I'd like to code --
If Advancing Volume is greater than Declining Volume plot Advancing Volume - Declining Volume.
Else
If Declining Volume is greater than Advancing Volume plot Declining Volume - Advancing Volume.
Overlay this on Total Volume and you can get a sense of how positive or negative the total volume was for the NYA index.
Thanks again for the help.
Tobey
Size:
Color:
Hi Tobey,
Create a new DataSeries for storing the result, then while looping by the Bars check for your condition(s), and store the result for that bar in the DataSeries. This is the general principle that applies everywhere.
See the WealthScript Guide, DataSeries > Filling a Custom DataSeries > How to: Create a DataSeries filled with zeroes > Example 2.
Size:
Color:
Hi Eugene,
Thanks!
If this code looks OK then there is a problem with Fidelity's from March 7th through April 11.
Even if they never fix the data I thank you for helping figure out the code. I can use it elsewhere.
Thanks Again
Tobey
CODE:
Please log in to see this code.
Size:
Color:
I do not work with WLP so no idea what kind of problem there is (pls contact Fidelity directly wrt Fidelity data issues) but you can always back that data up with
Market Sentiment static data provider.
Size:
Color:
Hi Eugene,
I guess the code is ok. I switched the data source to Market Sentiment static data provider and the March data looked correct. But it looks like their data changes scale Starting May 31st. Maybe they will fix it since it is recent data.
Thanks
Tobey
CODE:
Please log in to see this code.
Size:
Color:
QUOTE:
But it looks like their data changes scale Starting May 31st. Maybe they will fix it since it is recent data.
I couldn't see anything to fix, the scale is the same and the data is OK. What do you mean?
Size:
Color:
Hi Eugene,
Here are a couple of Screen shots. In the bottom pane you can see the areas where the bars all of a sudden get significantly higher.
Thanks
Tobey
http://www.greatpix.com/ebpix/FidelityData.jpg
http://www.greatpix.com/ebpix/UnicornData.jpg
Size:
Color:
Hi Tobey,
Thanks. I guess the difference can be caused by Unicorn Research reporting the median values found across the different publicly-available sources they use while processing the data.
Size:
Color:
Hi Eugene,
I know you cant see the numbers on the screen shots. But the don't make sense.
For example on the unicorn chart,
On 5/27/11
930,835,419.14 = Average 50 Volume
707,759,795.00 = ADV + DEV + UNC Total Volume
On 5/31/11
4,120,144,549.00 = ADV + DEV + UNC Total Volume
And it's stayed about that high since.
I don't think Total Volume has been running 4x higher this last week.
I think it is either a bad download or bad data. And I'm not sure how it gets corrected.
Thanks Again
Tobey
Size:
Color:
Size:
Color:
Hi Eugene,
Fidelity is going to check their data. If Unicorn changes their data will the data manager automatically download the change or do I have to delete data and re-download it?
Thanks again for the help with the code. Even if this doesn't work because of data issues I'll find a place to use it.
Tobey
Size:
Color:
Being cautious is a good habit. However if you switch the chart scale of a NYSE adv/dec/unch chart by the Market Sentiment provider to Weekly, you'll see there's nothing to worry about. History knew heavier volume as well as calmer periods.
Size:
Color:
The Market Sentiment provider is depreciated. Effective 02/20/2020, MS123 supports the most frequently used market sentiment data through our
Wealth-Data provider - the
advancing, declining and unchanged issues for AMEX, NASDAQ and NYSE! Here are the symbols:
$AMEX_ADVN (AMEX Advancing Issues)
$AMEX_DECLN (AMEX Declining Issues)
$AMEX_UNCHN (AMEX Unchanged Issues)
$NASDAQ_ADVN (NASDAQ Advancing Issues)
$NASDAQ_DECLN (NASDAQ Declining Issues)
$NASDAQ_UNCHN (NASDAQ Unchanged Issues)
$NYSE_ADVN (NYSE Advancing Issues)
$NYSE_DECLN (NYSE Declining Issues)
$NYSE_UNCHN (NYSE Unchanged Issues)
You can create a W-D DataSet by copying/pasting the symbols or by choosing them from "MS" Classification Group in the New DataSet Wizard > Wealth-Data.
Size:
Color:
UPDATE:
Effective 03/09/2020, get more market sentiment data using our
Wealth-Data provider - the
new highs and lows for AMEX, NASDAQ and NYSE! The new symbols are:
$AMEX_newhi (AMEX New Highs)
$AMEX_newlo (AMEX New Lows)
$NYSE_newhi (NYSE New Highs)
$NYSE_newlo (NYSE New Lows)
$NASDAQ_newhi (NASDAQ New Highs)
$NASDAQ_newlo (NASDAQ New Lows)
Size:
Color: