INVITE-ONLY SCRIPT
Mis à jour

Profitable Vortex Indicator Scanner

5 168
Introduction
The Vortex Indicator is a technical indicator invented by Etienne Botes and Douglas Siepman (Technical Analysis of Stocks & Commodities, V.28:1 (January, 2010): "The Vortex Indicator") to identify the start of a new trend or the continuation of an existing trend within financial markets.

It is composed of two lines, +VI and -VI. +VI represents up trending momentum and -VI represents down trending momentum.

The most basic strategy is to use the crossovers as trade signals:
  • when +VI crosses above -VI, go Long
  • when -VI crosses above +VI, go Short
  • Exit when a crossover occurs in the opposite direction


What is this tool?
This tool is a performance scanner that uses a decision tree-based algorithm under the hood to find the most profitable period's setting for the indicator. It analyzes the range of periods between 2 to 100 and backtests the Vortex Indicator for each period using the strategy mentioned above across the entire history of an instrument.

Settings
Net Profit line is optional and can be hidden through settings.

Alerts
It has an alert that notifies when a more profitable period was detected.

NOTE: It does not change what has already been plotted.

Good luck!
Notes de version
  • Now it uses "Early Switch" version of the algorithm
  • Removed Net Profit line from script because it can be shown in the strategy backtester
  • Made minor optimizations
Notes de version
  • Made optimization fixes
Notes de version
  • Update
Notes de version
  • Security update
Notes de version
  • Updated the main algorithm
  • Updated the alert
  • Optimized inputs

Clause de non-responsabilité

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