- Topics: 5
- Replies: 422
- Posts: 427
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:
//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