Simple TradingView PINE script for RSI backtesting strategy

Mbyllur Postuar 5 vite mё parё Paguhet në dorëzim
Mbyllur Paguhet në dorëzim

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.

Programim

ID Projekti: #17664608

Rreth projektit

2 propozimet Projekti në distancë Aktiv 5 vite mё parё

2 profesionistë freelancer dërguan një ofertë mesatare prej $28 për këtë punë

nubelo_ZiQIx7fa

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 për 10 ditë
(0 Përshtypje)
0.0