XEATrade.com Forex Trading Systems - experts advisors, indicators for Metatrader, Metastock, Tradestation.
  
         
   
# A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
   
Home
Forex Forum
+ Add Script
 
Metastock
Expert Advisors
Explorations
Indicators
Trading Systems
 
Metatrader
MQL Experts
MQL Indicators
MQ4 Experts
MQ4 Indicators
MQ4 Scripts
 
Tradestation
Functions
Indicators
PaintBars
ShowMe
Trading Systems
 
Amibroker
Commentaries
Explorations
Functions
Indicators
Trading Systems
 
Contact us
 
 
 
Newsletter

 

 
 
Group: Tradestation Indicators
Title: Adaptive Stochastic Oscillator by Tushar Chande
Description: was the first to propose adaptive indicators, and my article "Stochastic RSI And Dynamic Momentum Index" (STOCKS & COMMODITIES , December 1992) explains how to do it. My book The New Technical Trader (John Wiley & Sons) also contains a good explanation of it. The strategy is to change the lookback length of the indicator by connecting it to market volatility. We would like the indicator to have a long lookback period when prices are in a trading range (volatility is low). Conversely, we want a short lookback length when prices are moving rapidly. I feel that changing the lookback length for calculating indicators is more responsive than smoothing them with adaptive moving averages. The actual definition of long and short lookback lengths depends on your trading horizon. Here is some simple TradeStation code to create an adaptive stochastic oscillator that uses the 20-day standard deviation of closing prices to vary the length between seven and 28 days. First, determine if the 20-day standard deviation is at its highest level. To do so, compute a stochastic oscillator using the 20-day standard deviation (variables v1 through v4). If the 20-day standard deviation is at its highest level (v1=v2), then v4=1 and the oscillator length is set at its shortest value, that is, set to the variable lenmin (=7 days). If the 20-day standard deviation is at its lowest value (v1=v3), then v4=0 and the current length is set to the maximum length, that is, the variable lenmax (= 28 days). All that remains is to calculate the stochastic oscillator, Stoch, for the close and smooth it using a three-day exponential moving average. The same approach can be used to develop other adaptive indicators or averages.
 
Author/Source: Tushar Chande
   
   
Forex Directory | Forex Trading Systems | Privacy | Disclaimer | Contact