|
Here it is
I'll attach the file. I think that will help out more and I really want to get this working right. It sometimes places trades several bars passed the cross.
I put it on a 5 min chart. The parameters are good for the EURUSD, USDCHF, and USDJPY. I set tighter parameters for the GBPUSD and USDCAD. It enters long if the 4 hr 100 sma is below the current price and the 100 sma on the 5 is above the 200 sma. The RSI must be less than 30. Reverse all that and the RSI must be greater than 70 to go short.
It exits the trade when the RSI hits 63 for a buy and 37 for a sell. It does add to the position if it is negative 30 pips and locks in profit at +40.
I am not a programmer so I just cut and pasted code from a few different EAs and made some adjustments so the code may be a little messy and I didn't add many comments because I didn't intend on giving it out. This particular file is set up for a mini account because I am trading live with it.
|