PureBytes Links
Trading Reference Links
|
Thank You very much Larry!
Seems to work ok in 2000i.
Have A great weekend!
----- Original Message -----
From: "Larry" <lameyering@xxxxxxxxxxxxx>
To: "Ben" <balex@xxxxxxxx>
Sent: Friday, July 21, 2006 7:40 PM
Subject: Re:
> Hi Ben,
>
> The file contains two functions - a double top and a double bottom.
> They are attached and are also below.
>
> Larry
>
> Ben wrote:
> >
> > Could someone please convert this function to text???
> > Hope'n it'll work in 2000i.
> >
> > Thanks!
> >
> >
https://www.tradestation.com/discussions/DATA/20050403141306ACMEDOUBLEBOT_TOP.ELD
>
> ***********
> [LegacyColorValue = true];
>
> { AcmeDoubleTop
> P280
> Function
> AcmeDoubleTop: Find a double top formation}
>
> Inputs:
> LookbackBars(Numeric),
> Strength(Numeric),
> RangeFactor(Numeric);
>
> Variables:
> RangeDelta(0.0),
> HighPivot(0.0),
> LowPivot(0.0),
> HighMinimum(7);
> AcmeDoubleTop = -1;
> RangeDelta = RangeFactor * Volatility(LookbackBars);
> HighPivot = PivotHighVSBar(1, High, Strength, Strength, LookbackBars);
> LowPivot = PivotLowVSBar(1, Low, Strength, Strength, LookbackBars);
>
> If HighPivot <> -1 and
> LowPivot <> -1 and
> HighPivot >= HighMinimum and
> AbsValue(High - High[HighPivot]) <= RangeDelta and
> AbsValue(High - Highest(High, HighPivot)) <= RangeDelta and
> HighPivot > LowPivot Then
> AcmeDoubleTop = HighPivot;
> ***********
> [LegacyColorValue = true];
>
> { AcmeDoubleBottom
>
> Function
> AcmeDoubleBottom: Find a double bottom formation}
>
> Inputs:
> LookbackBars(Numeric),
> Strength(Numeric),
> RangeFactor(Numeric);
>
> Variables:
> RangeDelta(0.0),
> HighPivot(0.0),
> LowPivot(0.0),
> LowMinimum(7);
> AcmeDoubleBottom = -1;
> RangeDelta = RangeFactor * Volatility(LookbackBars);
> HighPivot = PivotHighVSBar(1, High, Strength, Strength, LookbackBars);
> LowPivot = PivotLowVSBar(1, Low, Strength, Strength, LookbackBars);
> If HighPivot <> -1 and
> LowPivot <> -1 and
> LowPivot >= LowMinimum and
> AbsValue(Low - Low[LowPivot]) <= RangeDelta and
> AbsValue(Low - Lowest(Low, LowPivot)) <= RangeDelta and
> HighPivot < LowPivot and
> Low <= Low[1] Then
> AcmeDoubleBottom = LowPivot;
> **********
----------------------------------------------------------------------------
----
> [LegacyColorValue = true];
>
> { AcmeDoubleBottom
>
> Function
> AcmeDoubleBottom: Find a double bottom formation}
>
> Inputs:
> LookbackBars(Numeric),
> Strength(Numeric),
> RangeFactor(Numeric);
>
> Variables:
> RangeDelta(0.0),
> HighPivot(0.0),
> LowPivot(0.0),
> LowMinimum(7);
> AcmeDoubleBottom = -1;
> RangeDelta = RangeFactor * Volatility(LookbackBars);
> HighPivot = PivotHighVSBar(1, High, Strength, Strength, LookbackBars);
> LowPivot = PivotLowVSBar(1, Low, Strength, Strength, LookbackBars);
> If HighPivot <> -1 and
> LowPivot <> -1 and
> LowPivot >= LowMinimum and
> AbsValue(Low - Low[LowPivot]) <= RangeDelta and
> AbsValue(Low - Lowest(Low, LowPivot)) <= RangeDelta and
> HighPivot < LowPivot and
> Low <= Low[1] Then
> AcmeDoubleBottom = LowPivot;
>
----------------------------------------------------------------------------
----
> [LegacyColorValue = true];
>
> { AcmeDoubleTop
> P280
> Function
> AcmeDoubleTop: Find a double top formation}
>
> Inputs:
> LookbackBars(Numeric),
> Strength(Numeric),
> RangeFactor(Numeric);
>
> Variables:
> RangeDelta(0.0),
> HighPivot(0.0),
> LowPivot(0.0),
> HighMinimum(7);
> AcmeDoubleTop = -1;
> RangeDelta = RangeFactor * Volatility(LookbackBars);
> HighPivot = PivotHighVSBar(1, High, Strength, Strength, LookbackBars);
> LowPivot = PivotLowVSBar(1, Low, Strength, Strength, LookbackBars);
>
> If HighPivot <> -1 and
> LowPivot <> -1 and
> HighPivot >= HighMinimum and
> AbsValue(High - High[HighPivot]) <= RangeDelta and
> AbsValue(High - Highest(High, HighPivot)) <= RangeDelta and
> HighPivot > LowPivot Then
> AcmeDoubleTop = HighPivot;
>
|