CPSiphon8

VWAP, MFI, RSI with S/R Strategy

Best for 0dte/intraday trading on SPY with 1 minute chart
Strategy Concept
This strategy aims to identify potential reversal points in a price trend by combining momentum indicators (RSI and MFI), volume-weighted price (VWAP), and recent price action trends. It looks for conditions where the price is poised to change direction, either bouncing off a support level in a potential uptrend or falling from a resistance level in a potential downtrend.
By incorporating both price level analysis (support/resistance) and momentum indicators, the strategy seeks to increase the likelihood of identifying significant trend reversals, taking into consideration both recent price movements and the current price's position relative to historical highs and lows.

VWAP (Volume-Weighted Average Price)
  • VWAP acts as a benchmark to determine the general market trend. It's an average price weighted by volume.
  • A price above VWAP is often considered bullish, and a price below VWAP is seen as bearish.

MFI (Money Flow Index) and RSI (Relative Strength Index) Parameters
  • MFI is a volume-weighted RSI, used to identify overbought (above 70) or oversold (below 30) conditions.
  • RSI is a momentum indicator that measures the magnitude of recent price changes to identify overbought or oversold conditions, similar to MFI.
  • The script uses standard overbought (70) and oversold (30) thresholds for both MFI and RSI.

Trend Check Function
  • The function trendCheck analyzes the past pastBars candles to count how many were bullish (closing price higher than the opening price) and bearish.
  • This function is used to assess the recent trend direction.

Support and Resistance Detection
  • The script calculates the highest high (highestHigh) and lowest low (lowestLow) over the last lookbackSR (50) periods to identify potential support and resistance levels.
  • isNearSupport and isNearResistance are conditions to check if the current price is within 0.08% of these identified levels, indicating proximity to support or resistance.

Buy and Sell Logic
Buy Signal:
  • The RSI crosses over the oversold threshold (30).
  • The MFI is also below its oversold level (30).
  • The current price is above the VWAP.
  • The recent trend (past 20 bars) has been predominantly bearish.
  • The price is near the identified support level.

Sell Signal:
  • The RSI crosses under the overbought threshold (70).
  • The MFI is above its overbought level (70).
  • The current price is below the VWAP.
  • The recent trend has been predominantly bullish.
  • The price is near the identified resistance level.
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?