Hi, guys. I found this EA, but couldn't coding.
I want EA doing these rules:
First of all we need RSI with period 36 and Price_Typical (HLC/3).
Levels 60 and 40.
RSI 1 and RSI 2 (previous candle)
TimeFrame M15
For BUY: RSI (36,1) > 40 or 43 & RSI (36,2)< 40 or 43. After openin buy if RSI (36,1) < 40 or 37 close buy order with loss. For profit after opening buy order, if RSI (36,1) < 60 & RSI(36,2)>60 closing buy order with profit.
For SELL: If you understand we trade like "buy-sell-buy-sell". If something goes wrong close order by the rule. So for sell order RSI(36,1) < 60 or 57 & RSI(36,2) > 60 or 57. If RSI(36) > 60 or 63 close sell order with loss. After opening buy order, if RSI (36,1) > 40 & RSI (36,2) < 40 closing buy order with profit.
Here the EA. But i want to change EA rules for testing my strategy. Can anyone help me?
I want EA doing these rules:
First of all we need RSI with period 36 and Price_Typical (HLC/3).
Levels 60 and 40.
RSI 1 and RSI 2 (previous candle)
TimeFrame M15
For BUY: RSI (36,1) > 40 or 43 & RSI (36,2)< 40 or 43. After openin buy if RSI (36,1) < 40 or 37 close buy order with loss. For profit after opening buy order, if RSI (36,1) < 60 & RSI(36,2)>60 closing buy order with profit.
For SELL: If you understand we trade like "buy-sell-buy-sell". If something goes wrong close order by the rule. So for sell order RSI(36,1) < 60 or 57 & RSI(36,2) > 60 or 57. If RSI(36) > 60 or 63 close sell order with loss. After opening buy order, if RSI (36,1) > 40 & RSI (36,2) < 40 closing buy order with profit.
Here the EA. But i want to change EA rules for testing my strategy. Can anyone help me?
Attached File(s)
RSI.mq4
8 KB
|
1,018 downloads
Think like an investor, Act as a speculator. Ferid H.