- 2.1K All Categories
- 1.7K StockCharts
- 322 SharpCharts
- 88 Other Charting Tools
- 39 Saved Charts and ChartLists
- 1.1K Scanning
- 55 Data Issues
- 126 Other StockCharts Questions
- 152 Technical Analysis
- 116 Using Technical Analysis
- 1 InterMarket and International
- 14 Market and Breadth Indicators
- 21 Market Analysis
- 75 Trading
- 75 Trading Strategies
- 143 S.C.A.N the StockCharts Answer Network forum
- 49 Using this StockCharts Answer Network forum
- 94 s.c.a.n. archives
- 11 Off-Topic
- 8 The Cogitation & Rumination Emporium
- 3 Forum Test Area

New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

The formula I'm after is: (AbsVal(9EMA-20EMA)/(9EMA))<.01

I tried nesting the difference in EMA's with brackets (with & without the AbsVal operator), then used the "/" division component to divided that value by the 9EMA (also with brackets). However, I received a syntax error as it does not recognize the "/" operator.

What am I missing or is there another way to approach this calculation?

Thanks

## Comments

so, you have to do it with or statements. The first or statement would account for the 9 above the 20, the second would account for the 20 above the nine. I'm not sure if want to account for the 9 equals the 20.