Has anyone created a diffusion type index? I am looking to use the Breadth function in Optuma but I need to create a combination of an advance decline line and a percent of constituents indicator so I was looking to see if anyone had a created something similar in which to model against.
Hi Duke,
As the diffusion index is an AD line on the %up breadth measure we can just Accumulate the difference in that value.
You can do this in a ShowView tool.
// first get the breadth data (whether you build it or get one of the breadth tickers) B1 = GetData(code={BREADTH TICKER}); // now we get the difference from yesterday D1 = B1 - B1[1]; // then accumulate it for the result ACC(D1)
Hope that helps
Mathew