PureBytes Links
Trading Reference Links
|
The two indicators below use the function that was converted to text.
#1 The double top indicator......
----------------------------------------------------------------------------
------------------------------------------------------------------
inputs:
lookbackbars(20),
strength(4),
rangefactor(0.3),
malength(50);
variables:
DTBar(-1),
DTLine(-1),
AlertString("");
DTBar = AcmeDoubleTop(lookbackbars,strength,rangefactor);
If DTBar <>-1 then begin
DTLIne = TL_New(Date[0],time[0],h,date[DTbar],time[dtbar],h);
alertstring = "Acme Double Top";
if dmiplus(lookbackbars)>dmiminus(lookbackbars) then
Condition1 = absvalue(l-average(c,malength))<=
rangefactor*volatility(lookbackbars)
Else if dmiplus(lookbackbars)>dmiminus(lookbackbars) then
Condition1 = absvalue(h-average(c,malength))<=
rangefactor*volatility(lookbackbars);
If Condition1 then
AlertString=AlertString+" Near "+NumtoStr(Malength,0)+
" Bar Moving Average";
If AlertEnabled or Condition1 then
Alert(AlertString);
End;
----------------------------------------------------------------------------
----------------------------------
#2 The double bottom indicator.......
inputs:
Lookbackbars(20),
Strength(4),
RangeFactor(0.3),
MALength(50);
Variables:
DBBar(-1),
DBLine(-1),
AlertString("");
DBBar = AcmeDoubleBottom(Lookbackbars,Strength,RangeFactor );
If DBBar <>-1 then begin
DBLine = TL_New(Date[0],Time[0],low,date[dbbar],time[dbbar],low);
AlertString = "Acme Double Bottom";
If DMIPlus(Lookbackbars)>DMIminus(lookbackbars) then
Condition1 = AbsValue(h-average(c,malength))<=
rangefactor*volatility(lookbackbars)
Else if Dmiplus(lookbackbars)<dmiminus(lookbackbars) then
Condition1 = Absvalue(high-average(close,malength))<=
rangefactor*volatility(lookbackbars);
If Condition1 then
Alertstring = AlertString + "Near" + NumToStr(Malength,0)+
" Bar Moving Average";
If AlertEnabled or Condition1 then Alert(Alertstring);
End;
----------------------------------------------------------------------------
---------------------------------------
----- Original Message -----
From: "Clyde Lee" <clydelee@xxxxxxxxxx>
To: "Ben" <balex@xxxxxxxx>
Sent: Sunday, July 23, 2006 11:28 AM
Subject: Re: ELD to text
> be sure to send me the .els file when you get it working.
>
> Clyde
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Clyde Lee phone: 713.783.9540
> SYTECH Corporation
> 7910 Westglen, Suite 105
> Houston, TX 77063 fax: 713.783.1092
> WebSite: www.theswingmachine.com
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> ----- Original Message -----
> From: "Ben" <balex@xxxxxxxx>
> To: <omega-list@xxxxxxxxxx>
> Sent: Friday, July 21, 2006 02:08 PM
> Subject: ELD to text
>
>
> > Could someone please convert this to text???
> > Hope'n it'll work in 2000i.
> >
> > Thanks!
> >
> >
https://www.tradestation.com/discussions/DATA/20050403141306ACMEDOUBLEBOT_TOP.ELD
> >
>
>
|