I need a pine script, which will allow me to backtest a strategy.
1. ENTER LONG or CLOSE SHORT when RSI (close, 14) has crossed 0.30 returning from below. IMPORTANT!!! - on a candle close.
2. ENTER SHORT or CLOSE LONG when RSI (close, 14) has crossed 0.70 returning from above. On a candle close.
3. Don't open new position if there is already a position in the same direction opened.
4. Stop-loss at -2 pips.
5. Use 10% of total deposit per trade.
So in most typical behaviour, when RSI crosses 0.30 or 0.70, two trade calls should be executed: trade close and opening a new one in the opposite direction.
I would like to Backtest this strategy in a "Strategy Tester" over a configurable period of time, like 30 days.
3 freelancers are bidding on average $28 for this job
I can do it in Metatrader 4. I have develop various Expert Adviser for last three years and I trade in forex plataform with Metatrader 4. I'm Software System and i have been workin for 25 year