PROTECTED SOURCE SCRIPT
Mis à jour

Support/ Resistance with H1 ATR - strategy mainline version

5 664
This script using ATR (average true range) with source hl2 for create Support/ Resistance line

The color meaning:
- Green = Support line
- Red = Resistance line

Signal:
- If close price breakout Resistance line -> LONG signal will been active.
- If close price breakout Support line -> SHORT signal will been active.

Input setting:
Recommended default setting.
- Factor: amplitude for create Support/ Resistance line.
- Length: length of ATR.
- Offset: number of bar for check sideway or choppy market.
- Take profit: if you want test close position by profit.
- Stop loss: should not be missed.
- Open Position with Stop-Market type:
+ Open LONG position with high price and type Stop-Market.
+ Open SHORT position with low price and type Stop-Market.

Strategy setting:
Recommended default setting if you trade on Binance Futures or change Comission if you trade on another exchange.
Best backtest if:
- Max drawdown less than 10%.
- Min backtest time: 6 month.
- Avg profit: 10%/ month when no leverage is used.

Alert version:
1 - Select create new alert
2 - Condition:
+ eb BUY -> LONG signal
+ eb BUY close -> close LONG position
+ eb SELL -> SHORT signal
+ eb SELL close -> close SHORT position
3 - Option: recommended using [Once Per Bar Close] only. Because the signal will be more accurate if the price close breakout successfully.
+ Always put stop loss position to avoid PUMP/ DUMP market.

// Note: alert version not free, send for me a private message on TradingView to get price and gain access.

Recommended:
- Using in M30, M45, H1 timeframe with default setting.
- Symbol: BTC
- Exchange: Binance Futures
- Order size: 10% wallet balance, maximum 25% wallet balance.
- Leverage: X2-X5, maximum X10.

---> I using 10% wallet balance and X2 only.
Notes de version
Alert version:
1 - Select create new alert
2 - Condition:
+ eb BUY -> LONG signal
+ eb BUY close -> close LONG position
+ eb SELL -> SHORT signal
+ eb SELL close -> close SHORT position
3 - Option: recommended using (Once Per Bar Close) only. Because the signal will be more accurate if the price close breakout successfully.
+ Always put stop loss position to avoid PUMP/ DUMP market.

// Note: add text: (Once Per Bar Close)
Notes de version
Add new option for strategy:
- Trailing stop
Notes de version
Add title for plotarrow
Notes de version
Add new option for LONG/ SHORT
Notes de version
Support check realtime for open Bar
Notes de version
Add option for set backtest time
Notes de version
New option: Start year, start month and month range. If you want run backtest in range specifically time
Notes de version
- Update select time range
- Update PNL line
Notes de version
- Update new code for else if
- Auto recalculate offset for other timeframe to H1 timeframe
- Fixed re-alert in close poisition
Notes de version
Update new code for H1 timeframe, not using function security
Notes de version
Update warning by new pine code

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.