PROTECTED SOURCE SCRIPT
Updated

[Long/Short] Range Filter-ADX

58 903
It's a useful script for pairs where you can operate long and short.
It's a combination algorithm of the Range filter and the ADX.
The ADX helps to make the decision to enter to open long or short position.

LG --> Long
xL --> Close Long position
ST --> Short
xS --> close Short Position

Enjoy!!!
Release Notes
Long / Short Option and Profit / Loss added

Green --> Profit
Red --> Loss
Release Notes
Trailing Stop
Release Notes
Parabolic SAR

Best Time Frame 2H-4H
Release Notes
(Today Bitcoin = 3800 USD)

Happy New Year!!!!
Release Notes
DERIBIT --> 2H
Release Notes
Second Trailing Stop, Trailing Stop Delay Time and Stop Loss added

Some Settings but could be still better:

XBTUSD (BITMEX)

Timeframe = 2H
Position Side = BOTH
Source = hl2
Sampling Period = 12
Range Multiplier = 1.0
ADX lenght = 10
ADX Threshold = 19
SAR start = 0.07
SAR inc = 0.04
SAR max = 0.25
% Activation 1st TS = 1.5
1st TS = 0.2
Delay TS = 59
% Activation 2nd TS = 10
1st TS = 0.2
Stop Loss = 3

ETHUSD (BITMEX)

Timeframe = 2H
Position Side = BOTH
Source = hl2
Sampling Period = 14
Range Multiplier = 0.8
ADX lenght = 15
ADX Threshold = 13
SAR start = 0.08
SAR inc = 0.04
SAR max = 0.3
% Activation 1st TS = 1.5
1st TS = 0.2
Delay TS = 59
% Activation 2nd TS = 15
1st TS = 0.2
Stop Loss = 3

BNBUSDT (BINANCE)

Timeframe = 2H
Position Side = LONG
Source = hl2
Sampling Period = 18
Range Multiplier = 1.1
ADX lenght = 17
ADX Threshold = 20
SAR start = 0.05
SAR inc = 0.04
SAR max = 0.2
% Activation 1st TS = 3
1st TS = 0.3
Delay TS = 59
% Activation 2nd TS = 20
1st TS = 0.3
Stop Loss = 3

The main enemy is the exchange itself. They try to liquidate you with their unforeseen movements. This script catch those movements ...
Release Notes
New Trailing Stop Delay. It's the same method as the RePaNoCHa script. It take a snapshot every X seconds, if the TS is activated the alert is triggered, otherwise the price keeps fluctuating until a new snapshot.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.