Conditions in the Current Code: Weekly Chart Conditions: MACD Downtick → MACD line is lower than the previous bar. RSI Below 60 → RSI on the weekly chart is below 60. (Both conditions must be met for the hourly conditions to be checked.)
Hourly Chart Conditions for Red Signal (Bearish Signal): Price Below VWAP → Price is closing below the VWAP. Price Below 50 EMA → Price is closing below the 50 EMA. -DI above +DI → Ensures a negative trend. RSI Below 60 → RSI must be below 60. Price Crossing Below 50 EMA & VWAP from Above → Ensures red signal when price moves below these levels. ✔ A new red signal appears when all conditions are met, but only once per trend. ✔ No intermediate red signals between a red-green signal pair.
Green Signal (Trend Reversal) on Hourly Chart: HA Candle is Green → Heikin-Ashi candle must be green. HA Candle Closes Above VWAP → The green Heikin-Ashi candle must close above VWAP. ✔ Green signal appears only after a red signal has been triggered. ✔ No new red signals appear between a red-green signal pair.