Reply To: Custom Market Breadth Examples

Optuma Forums Optuma Scripting Custom Market Breadth Examples Reply To: Custom Market Breadth Examples

#66875
Andrew
  • Topics: 7
  • Replies: 5
  • Posts: 12

Hi,

I’m looking to create a breadth thrust indicator that would seem fairly simple, however, I ‘m not having much luck creating it. The indicator is basically the Zweig Breadth thrust model but using the S&P500 data in lieu of the NYSE data. The calculation is (SP500 Advances / SP500 Advances + SP500 Declines). The output data would have a 10 day ema placed on it and presented in Histogram format.

Using the GetData Function, here’s what I have:
GETDATA(CODE=ADVSPX:BM)/GETDATA(CODE=ADVSPX:BM)+GETDATA(CODE=DECSPX:BM)

Not getting desired result from the custom breadth module.

Please advise.

TIA

Pin It on Pinterest