OPEN-SOURCE SCRIPT

Median Kijun-Sen [InvestorUnknown]

InvestorUnknown의
The Median Kijun-Sen is a versatile technical indicator designed for both trend-following strategies and long-term market valuation. It incorporates various display modes and includes a backtest mode to simulate its performance on historical price action.

Key Features:

1. Trend-Following and Long-Term Valuation:
  • The indicator is ideal for trend-following strategies, helping traders identify entry and exit points based on the relationship between price and the Kijun-Sen calculated from median price (customizable price source).
  • With longer-term settings, it can also serve as a valuation tool (in oscillator display mode), assisting in identifying potential overbought or oversold conditions over extended timeframes.


스냅샷

2. Display Modes:
The indicator can be displayed in three main modes, each serving a different purpose:
  • Overlay Mode: Plots the Median Kijun-Sen directly over the price chart, useful for visualizing trends relative to price action.
  • Oscillator Mode: Displays the oscillator that compares the current price to the Median Kijun-Sen, providing a clearer signal of trend strength and direction


스냅샷

  • Backtest Mode: Simulates the performance of the indicator with different settings on historical data, offering traders a way to evaluate its reliability and effectiveness without needing TradingView's built-in strategy tool


스냅샷

3. Backtest Functionality:
  • The inbuilt backtest mode enables users to evaluate the indicator's performance across historical data by simulating long and short trades. Users can customize the start and end dates for the backtest, as well as specify whether to allow long & short, long only, or short only signals.
  • This backtest functionality mimics TradingView's strategy feature, allowing users to test the effectiveness of their chosen settings before applying them to live markets.




스냅샷

4. Hint Table for Pane Suggestions:
An inbuilt hint table guides users on how to best visualize the indicator in different display modes:
  • For Overlay Mode, it is recommended to use the same pane as the price action.
  • For Oscillator and Backtest Modes, it is advised to plot them in a separate pane for better clarity.

This table also provides step-by-step instructions on how to move the indicator to a different pane and adjust scaling, making it user-friendly.

스냅샷


Potential Weakness
  • One of the key drawbacks is the indicator’s tendency to produce false signals during price consolidations, where price action lacks clear direction and may trigger unnecessary trades. This is particularly noticeable in markets with low volatility.


Alerts
  • The indicator includes alert conditions for when it crosses above or below key levels, enabling traders to receive notifications of LONG or SHORT signals.



Summary
  • The Median Kijun-Sen is a highly adaptable tool that serves multiple purposes, from trend-following to long-term valuation. With its customizable settings, backtest functionality, and built-in hints, it provides traders with valuable insights into market trends while allowing them to optimize the indicator to their specific strategy.
  • This versatility, however, comes with the potential weakness of false signals during consolidation phases, so it's most effective in trending markets.
educationalOscillatorsTrend Analysis

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

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

면책사항