Optuma Forums › Optuma General Discussion › Sector wise breadth Data in a watch list › Reply To: Sector wise breadth Data in a watch list
September 2, 2021 at 7:53 am
#65837
- Topics: 5
- Replies: 616
- Posts: 621
Hi,
You can reference the Breadth code using the Getdata() function.
The Moving Average is then wrapped around the GetData item (so it’s calculated from that data rather than the charts). Once that’s done you can add your specific criteria.
Here’s a simple example but you will need to update it to use your custom breadth code data:
1 2 3 4 5 6 7 8 |
//Set Breadth Code V1 = GETDATA(CODE=BREADTHCODE~1:Market Breadth) ; //Find MA Values applied to Breadth Code V2 = MA(V1, BARS=65, STYLE=Simple) ; //Is Breadth Code higher than 65SMA V1 > V2 |