Median Proximity Percentile [AlgoAlpha]

AlgoAlpha 업데이트됨   
📊🚀 Introducing the "Median Proximity Percentile" by AlgoAlpha, a dynamic and sophisticated trading indicator designed to enhance your market analysis! This tool efficiently tracks median price proximity over a specified lookback period and finds it's percentile between 2 dynamic standard deviation bands, offering valuable insights for traders looking to make informed decisions.

🌟 Key Features:
  • Color-Coded Visuals: Easily interpret market trends with color-coded plots indicating bullish or bearish signals.
  • Flexibility: Customize the indicator with your preferred price source and lookback lengths to suit your trading strategy.
  • Advanced Alert System: Stay ahead with customizable alerts for key trend shifts and market conditions.

🔍 Deep Dive into the Code:
  1. Choose your preferred price data source and define lookback lengths for median and EMA calculations.
    priceSource = input.source(close, "Source")
    lookbackLength =, minval = 1, title = "Lookback Length")
  2. Calculate median value, price deviation, and normalized value to analyze market position relative to the median.
    medianValue = ta.median(priceSource, lookbackLength)
  3. Determine upper and lower boundaries based on standard deviation and EMA.
    upperBoundary = ta.ema(positiveValues, lookbackLength) + ta.stdev(positiveValues, lookbackLength) * stdDevMultiplier
    lowerBoundary = ta.ema(negativeValues, lookbackLength) - ta.stdev(negativeValues, lookbackLength) * stdDevMultiplier
  4. Compute the percentile value to track market position within these boundaries.
    percentileValue = 100 * (normalizedValue - lowerBoundary)/(upperBoundary - lowerBoundary) - 50
  5. Enhance your analysis with Hull Moving Average (HMA) for smoother trend identification.
    emaValue = ta.hma(percentileValue, emaLookbackLength)
  6. Visualize trends with color-coded plots and characters for easy interpretation.
    plotColor = percentileValue > 0 ? colorUp : percentileValue < 0 ? colorDown : na
  7. Set up advanced alerts to stay informed about significant market movements.
    // Alerts
    alertcondition(ta.crossover(emaValue, 0), "Bullish Trend Shift", "Median Proximity Percentile Crossover Zero Line")
    alertcondition(ta.crossunder(emaValue, 0), "Bearish Trend Shift", "Median Proximity Percentile Crossunder Zero Line")
    alertcondition(ta.crossunder(emaValue,emaValue[1]) and emaValue[1] > 90, "Bearish Reversal", "Median Proximity Percentile Bearish Reversal")
    alertcondition(ta.crossunder(emaValue[1],emaValue) and emaValue[1] < -90, "Bullish Reversal", "Median Proximity Percentile Bullish Reversal")

🚨 Remember, the "Median Proximity Percentile " is a tool to aid your analysis. It’s essential to combine it with other analysis techniques and market understanding for best results. Happy trading! 📈📉
릴리즈 노트:
Replaces "EMA" with "HMA" in the inputs.
릴리즈 노트:
Added Alerts for trend swings
Added the option to turn on/off the noise scatterplot

🚨Get premium:

🛜Get FREE signals:

❓Do you have feedback or indicator ideas? Join our server to tell us about it:
오픈 소스 스크립트

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


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

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