OPEN-SOURCE SCRIPT

EMR Strategy [H1 Backtesting]

已更新
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.
版本注释
Update funtion backtest at line 175 and 176
版本注释
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
版本注释
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)

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明