OPEN-SOURCE SCRIPT

EMR Strategy [H1 Backtesting]

Telah dikemas kini
EMR Strategy base on EMA, MACD and RSI to supply signal on time frame H1.
Details of Rule as below:
===
1.EMA
+ Time frame: H1
+ Periods: 25, 100 (~ EMA 25 H4), 600 (~ EMA 25 D1)
===
2.MACD
+ Time frame: H1
+ Periods: 12,26,9
===
3.RSI
+ Time frame: H1
+ Periods: 14
===
4.Trading Rule
4.1.Long Position
+ MACD>0 and RSI>50 and close price moving above EMA 25
+ Close price crossed EMA 100 or crossed EMA 600 at the first time
4.2.Short Position
+ MACD<0 and RSI<50 and close price moving below EMA 25
+ Close price crossed EMA 100 or crossed EMA 600 at the first time
===
5.Money Management
+ This strategy concentrate into winrate.
+ So use trailing stop to protect your profits.
+ And use stoploss to avoid big loss on trades.
Nota Keluaran
Update funtion backtest at line 175 and 176
Nota Keluaran
Update Table of Infomation and Exit Position Rule
4.3.Exit Position
+ Exit Long Position when High Price moving below all 3 EMA
+ Exit Long Position when RSI over 70
+ Exit Short Position when Low Price moving above all 3 EMA
+ Exit Short Position when RSI under 30
Nota Keluaran
Update Input RSI Overbought and Oversold Level, and Rule of Exit Position.
4.3.Exit Position
+ Exit Long Position when High Price moving below all 3 EMA
+ Exit Long Position when RSI overbought and EMA25>EMA100 or EMA25>EMA600
+ Exit Short Position when Low Price moving above all 3 EMA
+ Exit Short Position when RSI oversold and EMA25<EMA100 or EMA25<EMA600
backtestingCentered OscillatorsMoving AveragesOscillatorsRelative Strength Index (RSI)

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian