OPEN-SOURCE SCRIPT
Moving Average 250-day Strategy

This indicator creates buy/sell signals based on the daily close crossing over its 250-day Simple Moving Average (as green/red vertical bars). The signals are locked on the daily timeframe.
There is also a counter implemented indicating the number of trades/crossovers present in the current chart (marked in yellow).
There have been papers suggesting trading around the Moving Average can greatly increase the portolio's risk metrics, e.g. "Leverage for the Long Run - A Systematic Approach to Managing Risk and Magnifying Returns in Stocks" (Michael A. Gayed).
This script provides the ability to help you create such a trend-following strategy.
Best used on a broad index like the S&P 500, the strategy should go long when the the daily close crosses above the 250-day SMA and orders are closed when the 250-day SMA crosses below the daily close. This simple indicator does not take into account any other stop loss or take profit money management logic.
Thanks.
There is also a counter implemented indicating the number of trades/crossovers present in the current chart (marked in yellow).
There have been papers suggesting trading around the Moving Average can greatly increase the portolio's risk metrics, e.g. "Leverage for the Long Run - A Systematic Approach to Managing Risk and Magnifying Returns in Stocks" (Michael A. Gayed).
This script provides the ability to help you create such a trend-following strategy.
Best used on a broad index like the S&P 500, the strategy should go long when the the daily close crosses above the 250-day SMA and orders are closed when the 250-day SMA crosses below the daily close. This simple indicator does not take into account any other stop loss or take profit money management logic.
Thanks.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.