This is coded in tradestation, easy to configure to other platforms...
{ TrendArea_2 Indicator WAV 9/15/04
9/16/04 added FastLen and SlowLen inputs
}
inputs: ThresholdArea(25),FastLen(13),
SlowLen(30);
vars: BarCount(0),SlowMA(0),FastMA(0),
color(0),area(0);
SlowMA =...