Bellevue
Experience: Intermediate
Platform: Tradestation
Trading: YM
Posts: 18 since Jul 2010
Thanks Given: 0
Thanks Received: 2
|
Thank you for taking a look at this. Here are the 2 parts of code.
This is part 1, the function code:
Type: Function, Name: GD Inputs:
Price(Numeric),
Period(Numeric),
vFactor(Numeric);
Vars:
X1(0),
X2(0),
Dema1(0);
X1= XAverage(Price, Period) * (1 + vFactor);
X2= XAverage(XAverage(Price, Period), Period) * vFactor;
GD = X1 - X2;
This is part 2, the indicator code:
Type: Indicator, Name: T3
Inputs:
Price(Close),
Period(6),
vFactor(.7);
Vars:
T3(0);
T3 = GD (GD ( GD(Price, Period, vFactor), Period, vFactor), Period, vFactor);
Plot1(T3, "T3");
IF Close Crosses Above Plot1 OR Close Crosses Below Plot1 Then
Alert = True;
|