Monthly CMF < 0 but CMF > 0 for the past 5 years prior.
in Scanning
Hi, I'm trying to find stocks that have had CMF monthly go below 0 and then go back above zero. The past 5 years prior to drop below 0 needs to be CMF Monthly > 0. Is there a way of finding this across any year or time period with a scan? I'm able to find it in the present with the code below but i'm looking to scan for at any point in time.
and
[monthly cmf(20) < 0]
and [3 months ago cmf(20) > 0]
and [
[2 months ago min(100,CMF(20)) > 0]
]

and
[monthly cmf(20) < 0]
and [3 months ago cmf(20) > 0]
and [
[2 months ago min(100,CMF(20)) > 0]
]

0
Comments
-
I think you could write it:
// [exchange is NYSE] // this could be something else - group is sp500, group is energy, etc.
and [ 0 x MONTHLY CMF(20)]
and [ 1 month ago MONTHLY min(60, MONTHLY CMF(20)) > 0 ]
You need the MONTHLY modifier in front of CMF every time you use CMF, even inside the parens of a function like min( ) or sma( ) or ema( ), etc.0
Categories
- All Categories
- 2.4K StockCharts
- 397 SharpCharts
- 146 Other Charting Tools
- 69 Saved Charts and ChartLists
- 1.5K Scanning
- 74 Data Issues
- 177 Other StockCharts Questions
- 224 Technical Analysis
- 155 Using Technical Analysis
- 6 InterMarket and International
- 19 Market and Breadth Indicators
- 44 Market Analysis
- 109 Trading
- 109 Trading Strategies
- 162 S.C.A.N the StockCharts Answer Network forum
- 64 Using this StockCharts Answer Network forum
- 98 s.c.a.n. archives
- 7 Off-Topic
- 7 The Cogitation & Rumination Emporium
- Forum Test Area
