SVESC

Description

The SVESC strategy is a sample technical indicator described by Sylvain Vervoort in an article for the Technical Analysis of Stocks and Commodities magazine. The author emphasizes that this strategy is shown for educational purposes only.

In order to simulate Buy and Sell orders, the strategy calculates three averages: one of hlc3 (arithmetic mean of high, low, and close), one of Heikin Ashi ohlc4 (arithmetic mean of Heikin Ashi open, high, low, and close), and one of the close price. The simulated orders are added upon the following conditions: 

  • Buy Auto. Average hlc3 price rises above the average Heikin Ashi price at a bullish bar. 

  • Sell Auto. Average hlc3 price falls below the average Heikin Ashi price at a bearish bar.

  • Buy To Close. There is a short position and the close is greater than both its average value and the open.
  • Sell To Close. There is a long position and the close is less than both its average value and the open.

Input Parameters

length The number of bars used in the calculation of averages of hlc3 and Heikin Ashi prices.
exit length The number of bars used in the calculation of the close price average.

Plots

AveragePrice The average of hlc3.
AverageHaPrice The average of Heikin Ashi ohlc4.
AverageExit The average of the close price.
Market A histogram that illustrates how the simulated orders are added.

Further Reading

1. "Exploring Charting Techniques: Creating A Trading Strategy" by Sylvain Vervoort. Technical Analysis of Stocks & Commodities, October 2014.

Backtesting is the evaluation of a particular trading strategy using historical data. Results presented are hypothetical, and there is no guarantee that the same strategy implemented today would produce similar results.

Technical analysis is not recommended as a sole means of investment research.

For educational purposes only. Not a recommendation of a specific security or investment strategy.