Nifty Dip Buyer v3
Loading the chart…
About this strategy
i don't know man use like it says in dip i used ai to create it now its telling me write some words so be it
How to use it
- Click Use on chart. It opens the terminal with this strategy in the strategy tester.
- Pick your symbol and timeframe, then read the summary and the list of trades: net profit, drawdown, win rate.
- Change the inputs from the strategy settings and compare. Past results do not predict future ones.
Settings and what it draws
Settings
| Input | Type | Default |
|---|---|---|
| Input 1 | Whole number | 200 |
| Input 2 | Whole number | 2 |
| Input 3 | Whole number | 20 |
| Input 4 | Whole number | 65 |
| Input 5 | Whole number | 14 |
| Input 6 | Number | 1.5 |
| Input 7 | Number | 3 |
Draws on the price chart
- EMA 200Line
Source code
strategy("Nifty Dip Buyer v3", overlay=true, initial_capital=100000, default_qty_type=strategy.percent_of_equity, default_qty_value=100)
trendLen = input.int(200, "Trend EMA")
rsiLen = input.int(2, "RSI length")
rsiBuy = input.int(20, "RSI buy level")
rsiExit = input.int(65, "RSI exit level")
atrLen = input.int(14, "ATR length")
stopMult = input.float(1.5, "ATR stop mult")
tgtMult = input.float(3.0, "ATR target mult")
trend = ta.ema(close, trendLen)
r = ta.rsi(close, rsiLen)
atrv = ta.atr(atrLen)
buySig = close > trend and r < rsiBuy
exitSig = r > rsiExit
if buySig and strategy.position_size == 0
strategy.entry("L", strategy.long)
if strategy.position_size > 0
strategy.exit("XL", "L", stop=strategy.position_avg_price - stopMult * atrv, limit=strategy.position_avg_price + tgtMult * atrv)
if exitSig
strategy.close("L")
plot(trend, "EMA 200", color=color.gray)
Comments (0)
No comments yet. Be the first to say how it worked for you.