DojiEmoji

[KL] Relative Volume + ATR Strategy

DojiEmoji Aktualisiert   
This strategy will enter into long position when (a) current volume is above the average volume, and when (b) volatility of prices (based on ATR) is relatively low.

Backtested on hourly timeframes, win rates range between 35% to 50% on stocks with positive drifts (i.e. tendency to move upwards). Default setups are as follows:
- Average volume is computed using simple moving average (sma) of 14 periods. By default, 1.4x ratio seems to work well on most large cap stocks. If it's too high, then amount of potential points for entry will decrease. But if it's too low, then this indicator becomes meaningless.
- ATR (for determining volatility), look back period is 14 (following conventions). I have noticed that the profits could change drastically when changed to different values for each individually security. Feel free to experiment around with this parameter.


Other information: This strategy is based off of one of my previous scripts; a script called "Relatively Volume Strategy". The objective of this new script is to simplify the process of determining periods of low volatility. In this new script, we assume prices are consolidating when current ATR is within its moving average value by +/- one standard deviation.
Versionshinweise:
Fixed a bug
Versionshinweise:
Trend Detection:
Inserted entry_signal3 (which measures the Drift of price movements) to determine the direction of trend. Strategy will now avoid entering a trade if entry_signal3 suggests prices are moving in a downtrend. Furthermore, this condition can be turned on/off in settings allowing user to compare backtested results.

Generally speaking, this feature will reduce the total number of trades taken, especially bad ones, hence likely to reduce drawdown and improve profit factors. By default, the lookback period length is 50 (which was arbitrarily determined, and seems to work well on hour charts of large cap stocks).

I have recently published an indicator script called "Drift Study (Inspired by Monte Carlo Simulations with BM)". This can be added to the charts for better visualizations.
If added to the chart, make sure the lookback periods are the same.
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?

Ähnliche Ideen