Strategy
Hello,
I am trying to write a scan based on the following conditions. Can someone help me with the MACD part of it? highlighted in bold below in the strategy. That is where I am getting confused.
// BUY WHEN CLOSE IS ABOVE EMA25
AND CLOSE CROSSES 10SMA OF HIGHS
AND RSI4 GREATER THAN 50
AND MACD current bar > prev bar
This is what I have written so far
// set stock universe
[Country is US]
and
[type = stock] AND [group is not ETF] and [name not contains "Trust"] and [name not contains "Notes Due"] and [name not contains "Shares"] and [name not contains "Fund"]
and
[ TODAY CLOSE> EMA (25, CLOSE)] AND
[ TODAY HIFH x SMA(10, HIGH)] AND
[RSI(4) > 50] and
[MACD Line(12,26,9) > MACD Signal(12,26,9)] and
[MACD Line(12,26,9) > 0]
I am trying to write a scan based on the following conditions. Can someone help me with the MACD part of it? highlighted in bold below in the strategy. That is where I am getting confused.
// BUY WHEN CLOSE IS ABOVE EMA25
AND CLOSE CROSSES 10SMA OF HIGHS
AND RSI4 GREATER THAN 50
AND MACD current bar > prev bar
This is what I have written so far
// set stock universe
[Country is US]
and
[type = stock] AND [group is not ETF] and [name not contains "Trust"] and [name not contains "Notes Due"] and [name not contains "Shares"] and [name not contains "Fund"]
and
[ TODAY CLOSE> EMA (25, CLOSE)] AND
[ TODAY HIFH x SMA(10, HIGH)] AND
[RSI(4) > 50] and
[MACD Line(12,26,9) > MACD Signal(12,26,9)] and
[MACD Line(12,26,9) > 0]
0
Comments
-
I'm assuming by MACD current bar you mean the MACD Hist( ) indicator:
and [MACD Hist(12,26,9) > 1 day ago MACD Hist(12,26,9)]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
