Simple TradingView PINE script for RSI backtesting strategy

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.

Skills: Programming

See more: simple post comment script, simple flash slidshow script, simple server monitor script, tradingview pine script strategy, tradingview pine script examples, pine script strategy examples, tradingview strategies, tradingview strategy tester tutorial, tradingview scripts, pine script strategy, pine script plot, simple delete php script, simple viewer action script, simple web database script, simple paid advertisement script, simple php replace script, creating simple mail form script, simple file hosting script, script delete email past days, simple web monitor script

About the Employer:
( 1 review ) Warsaw, Poland

Project ID: #17664608

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

$30 USD in 10 days
(0 Reviews)
$30 USD in 7 days
(0 Reviews)

I have experience in coding strategies in Pinescript for Tradingview. I am an coder plus trader. I I am current user of tradingview. This is my profile: [login to view URL] Let me know if you have More

$25 USD in 5 days
(0 Reviews)