OPEN-SOURCE SCRIPT

D_Rock's MA Indicator

업데이트됨
D_Rock's Moving Average Indicator


This is an indicator version of my strategy linked here


**Overview:**

The basic concept of this indicator is to generate a signal when a faster/shorter length moving average crosses over (for Longs) or crosses under (for Shorts) a medium/longer length moving average. All of which are customizable. This indicator can work on any timeframe, however the daily is the timeframe used for the default settings and screenshots, as it was designed to be a multi-day swing strategy. Once a signal has been confirmed with a candle close, based on user options, the strategy is to enter the trade on the open of the next candle.

The crossover strategy is nothing new to trading, but what can make this strategy unique and helpful, is the addition of further confirmation points before a signal is generated along with the ability to show multiple moving averages on the chart if you choose. Each moving average pair can also be turned into a "cloud" instead of the traditional lines, for additional viewing preferences. Just about everything visual can be toggled on/off as well.

This indicator is a Trend (MA) indicator with optional confirmation points using a Momentum (MACD) indicator. While a Volume-based indicator is not shown here, one could consider using their favorite from that category to further compliment the signal idea.

If you would like to see the backtesting results for your favorite moving average crossover/under, please see my strategy version linked here.

Shoutout given to Ripster's Clouds Indicator as pieces of that code were taken and modified to create both the Cloud visualization effects, and the Moving Average Pair Plots that are implemented in this strategy.


MOVING AVERAGE OPTIONS
  • Select between and change the length & type of up to 5 pairs (10 total) of moving averages
  • The "Show Cloud-x" option will display a fill color between the "a" and "b" pairs
  • All moving averages lines can be toggled on/off in the "Style" tab, as well as adjusting their colors.
  • Visualization features do not affect calculations, meaning you could have all or nothing on the chart and the strategy will still produce results


SIGNAL CHOICES
  • Choose the fast/shorter length MA and the medium/longer length MA to determine the entry signal


CONFIRMATION OPTIONS
  • Both of these have customizable values and can be toggled on/off
  • A candle close over a slower/much longer length moving average
  • An additional cross-over (cross-under for Shorts) on the MACD indicator using default MACD values. While the MACD indicator is not necessary to have on the chart, it can help to add that for visualization. The calculations will perform whether the indicator is on the chart or not.




ADDITIONAL PLOTS
MACD (Moving Average Convergence/Divergence):
- The MACD is an optional confirmation indicator for this strategy.
- Plotting the indicator is not necessary for the strategy to work, but it can be helpful to visually see the status and position of the MACD if this feature is enabled in the strategy
- This helps to identify if there is also momentum behind the entry signal
릴리즈 노트
Updated the chart to remove drawings
릴리즈 노트

  • Updated to pinescript version 6
  • Updated default MA's for a better visualization (still full customizable)
  • Removed the cloud checkbox on the input menu. Use the toggles in the Styles menu to turn clouds on/off.
  • Adjusted the visual name to abbreviate
  • MACD (optional) shown on chart to show cross confirmation
crossoverExponential Moving Average (EMA)Simple Moving Average (SMA)Weighted Moving Average (WMA)

오픈 소스 스크립트

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

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


또한 다음에서도:

면책사항