Easy to use strategy test using MACD with RSI as a confirming indicator. The code is structured to make it easy to manipulate the variables to your choosing.
EASY TO CHANGE CODE VARIABLES LINE 2 = Change the amount you invest every trade and the currency LINE 8/9/10 = Change the defval of each of these lines to backtest from a certain date LINE 16/17/18 = Change the MACD sensitivity by changing the defval on each line LINE 21 = Change the value after close toadjust the sensitivity of the RSI LINE 37/39 = Change/remove the < and > variables for macdLine and rsivalue after the crossover/crossunder to adjust your buying point further.
As a beginner you may not feel comfortable with shorting stocks, therefore LINE 5 was added to only allows long positions.
Funny how a simple indicator can return such a high profitability. Couple this with some trend/exit strategies and you'll have something really special!
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.