[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Currency Spreads



PureBytes Links

Trading Reference Links

Hi Mister,

Try this out. You can copy the code into a system and replace the check
alert stuff with if condition buy or sell.Hope this helps you.

Attached the ela's below.

James Semmons


Input: Input1(C of data1),Input2(Close of data2),LEN1(5),LEN2(10);
VALUE1=INPUT1/INPUT2;
VALUE2=AVERAGE(VALUE1,LEN1);
VALUE3=AVERAGE(VALUE1,LEN2);
Plot1(VALUE1,"DIFF");
Plot2(AVERAGE(VALUE2,LEN1),"SHORTAVG");
Plot3(AVERAGE(VALUE3,LEN2),"LONGAVG");

IF CHECKALERT THEN BEGIN
IF
VALUE1 CROSSES ABOVE VALUE2
OR
VALUE1 CROSSES BELOW VALUE2
THEN
ALERT=TRUE;
END;


------------------------------------------------

Input: Input1(C of data1),Input2(Close of data2),LEN1(5),LEN2(10);
VALUE1=INPUT1-INPUT2;
VALUE2=AVERAGE(VALUE1,LEN1);
VALUE3=AVERAGE(VALUE1,LEN2);
Plot1(VALUE1,"DIFF");
Plot2(AVERAGE(VALUE2,LEN1),"SHORTAVG");
Plot3(AVERAGE(VALUE3,LEN2),"LONGAVG");

IF CHECKALERT THEN BEGIN
IF
VALUE1 CROSSES ABOVE VALUE2
OR
VALUE1 CROSSES BELOW VALUE2
THEN
ALERT=TRUE;
END;

At 11:29 PM 2/19/98 -0600, Larry McWhorter wrote:
>JAMES SEMMONS wrote:
>> 
>> Make a chart with the appropriate data1 and data2. Insert analysis
>> techniques as the factory indicator "Spread (x-y)" or "Spread (x/y)". That
>> is it.  is.
>> 
>> James Semmons
>
>James:
>
>That works great if you just want to look at the indicator line but you
>cannot run a system on the indicator line (Spread(x-y) or Spread (x/y).
>The system can only be run on data1 or data2.  According to sketchy info
>in the server manual it says you should be able to construct spread
>data. But by following the instructions you get nothing.
>
>Latty McWhorter
>
>
Attachment Converted: "c:\eudora\attach\1.ela"