A progamming look at Relative Strength Index - RSI
Relative Strength Index (RSI) is a technical momentum indicator that compares the magnitude of historical gains to recent losses base on the time it calculated. This is to determine over bought and over sold condition of that currency.
RSI = 100 - 100 / ( 1 + Average gain days / Average loss days)
* Average gains days is the average of x with bullish bars (High - low)
* Average loss days is the average of x with bear bars (Low - High)
X is the period defined by user.
The above requires a lot of calculation but in MT4 this indicator is provided for you.
The RSI is blue chart (x = 14) and it range from 0 to 100. There is two lines indicating 70 and 30, showing over sold and over bought condition. Below are some ways to program the expert advisor to trade the RSI.
1) Trades when RSI moves from below 70 to above 70. Execute a buy trade with profit take 40pips and stop loss 40pips.
Example 17 Sep buy trade at 107.65 and take profit 108.05 few hours later. Similar for sell trade.
2) Trades when RSI moves from below 30 to above 30. Execute a buy trade with profit take 40pips and stop loss 40pips.
Example 23 Sep buy trade at 108.50 and take profit 108.90 few hours later. Similar for sell trade.
3) Trades when the gradient of RSI is more then 20 pips per bar. Stoploss 25 take profit 25 pips.
Example. 16 Sep buy trade at 107.00 and take profit at 107.25
17 Sep buy trade at 107.20 and take profit at 107.45
23 Sep buy trade at 108.50 and take profit at 108.75
26 Sep buy trade at 108.60 and take profit at 108.85
You can also use 2 RSI chart with 14 period and 28 period, so to show 1 slow and 1 fast indicator and trade buy when both cross the 70 mark and sell when both cross the 30 level.
Labels:
MT4,
MT5,
Others,
Tradestation
Subscribe to:
Post Comments (Atom)
Top Forex Automated Trading Expert Advisor (EA)
Forex EA | ROI (Monthly) | Profit Factor | Max Draw Down | S3 Scores | Star Rating | Alexa.com |
---|---|---|---|---|---|---|
FAP Turbo | 207% | 31.77 | 0.32% | 280 points | 5 stars | Rank 31,123 |
GPS Forex Robot | 28% | 3.93 | 5.68% | 260 points | 4 stars | Rank 283,290 |
Forex MegaDroid | 19.8% | NA | NA | 250 points | 4 stars | Rank 72,310 |
Leo Trader Pro | 32% | 2.85 | 5.84% | 250 points | 4 stars | Rank 213,570 |
Fully editable *.mq4 files that compile successfully with no errors (3MB zip file with 200+ EA codes. Including 40+ strategies from the Strategy Book. You can download the Free Strategy Book by joining my email newsletter on the right side of this website. Click "Buy Now" to make payment and instant down the Best Forex Ranking Cook Book at USD $79 (One time payment only) Click here for more info
No comments:
Post a Comment