TrendsAreSexy

Easy to Use MACD+RSI Strategy


BEGINNERS REJOICE!

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!

Hilangkan dari Skrip-Skrip Favorit Tambahkan ke Skrip-Skrip Favorit

Komentar

Is this a script to set an alert or something else?
+2 Jawab
@mac_dick, it's most useful as a back-testing strategy, a way to see how profitable a security is based on the MACD/RSI variables you put in place. It does show you when to buy/sell, but it won't actually send you an alert.
Jawab
Thanks for posting this! For anyone playing around, I was having significantly less luck than the above performance, so adjusted to also sell if rsivalue > 70. Profits jumped significantly in backdating testing. Just food for though.
Jawab
what is the purpose of the Hline code on line 30?
Jawab
TrendsAreSexy Hodl4dearlife
@Hodl4dearlife, it plots the dashed horizontal line you see in the MACD section. Entirely cosmetic.
Jawab
Hodl4dearlife TrendsAreSexy
@TrendsAreSexy, thanks!!
Jawab
I'm pretty sure this script will help to earn money with some modification. thanks for creating it!
Jawab
DonJuancito chongjianhui
@chongjianhui, did you end up using this script and made money with it?
+5 Jawab
thx for sharing i'll give it a try
Jawab
Beranda Penyaring Saham Penyaring Forex Penyaring Crypto Kalender Ekonomi Bagaimana Cara Kerjanya Fitur-Fitur Chart Harga Akun Refer seorang teman Tata Tertib Pusat Bantuan Solusi Website & Broker Widget-Widget Solusi Charting Perpustakaan Charting Ringan Blog & Berita Twitter
Profil Pengaturan Profil Akun dan Penagihan Teman yang di refer Koin Tiket Dukungan Saya Pusat Bantuan Ide Terpublikasikan Pengikut Mengikuti Pesan Pribadi Obrolan Keluar