Type/to search

Super Trend Daily 2.0 BF

ATR
1
Follow
1798
Followers

This is my Super Trend Daily strategy but with one important difference. You can now adjust settings for long or short signals individually and separately. For example, the condition for a long signal may require a different parameter setting than the condition for a short signal. Each parameter in the signal generation can be tuned. You can also decide what kind of stop loss you want for each side - you could have a fixed stop loss for longs and an ATR derived stop loss for shorts, or whatever.

We also have the option to choose if we want longs, shorts or both.

INISTRUCTIONS
Look at the background colors:
Green line = long signal
Red line = short signal
Aqua = No long trades
White = No short trades
Yellow dotted line = stop loss for long
Orange dotted line = stop loss for short

The aqua and white backgrounds mean the conditions are choppy/sideways according to our settings we applied to the rate of change function for a long/short signal respectively. It is possible to get a long signal in a white background, but not a short signal. Similarly, it is possible to get a short signal in an aqua background, but not a long signal.

This is a work in progress so any suggestions for improvements are welcome.

backtest

img

Source
Pine
/*backtest
start: 2022-04-25 00:00:00
end: 2022-05-24 23:59:00
period: 10m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("Super Trend Daily 2.0 BF ", overlay=true, precision=2, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.075)

/////////////// Time Frame ///////////////
Strategy parameters
Strategy parameters
════════ Test Period ═══════
Backtest Start Year
Backtest Start Month
Backtest Start Day
Backtest Stop Year
Backtest Stop Month
Backtest Stop Day
═════ Super Trend L ═════
ATR Period
ATR Multiplier
═════ Super Trend S ═════
ATR Period
ATR Multiplier
═════ Rate of Change L ═════
ROC Length
ROC % Change
═════ Rate of Change S ═════
ROC Length
ROC % Change
═══════ Stop Loss L ══════
Stop Loss Type
Fixed Stop Loss %
ATR Stop Period
ATR Stop Multiplier
═══════ Stop Loss S ══════
Stop Loss Type
Fixed Stop Loss %
ATR Stop Period
ATR Stop Multiplier
══════ Longs or Shorts ═════
Use Longs
Use Shorts
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)