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

Re: A little EL help?



PureBytes Links

Trading Reference Links

>  I monitor the spread between the S&P cash and the Dow cash
>  throughout the day and us the following simple indicator to show its value :
> 
> Input: SPClse(103814),DJIAClse(84082),LENGTH(10);
> Plot1(((Close of data1-SPclse)/100)-((Close of
> data2-DJIAClse)/80),"Cash Spread");
> Plot2(Average(Plot1,LENGTH),"Average");
> 
> As you can see I just manually input the prev day's close and then I
> have the indicator setup for my intraday charts.  Is there a way to
> automatically have the  indicator pickup the prev day's close and
> plot on an intraday (say 5 min) chart ?

sure,,,,,,,,,


set SP as data1
set DJ as data1

~~~~~~~~~~~~~~~~~~~~~~~
Input:LENGTH(10);

if d<>d[1] then begin
	value1=c of data1[1];   {store SPclose}
	value2=c of data2[1];   {store DJclose}
end;

Plot1(((C of data1-value1)/100)-((C of data2-value2)/80),"Cash Spr");

Plot2(Average(Plot1,LENGTH),"Average");

~~~~~~~~~~~~~~~~~~~~~~~~~~~

,,,,,,,,,,,,,and probably many other ways possible


rgds hans

~~~~~
I dont sell a newsletter
I dont sell a system
I dont sell a software
I dont sell a course
I dont sell anything else
I dont have a webpage
I dont want to have a webpage
I dont even trade OTHER peoples money !

.....and Im not a CTA !

nor an OMEGA (tm) RESEARCH (tm) WORKAROUND (tm) Solution Provider

Im just helpfull when/if I can 

Famous Publisher of the World's Best Systems/Software/Newsletter <br>
For a REAL proof ~ simply send me ALL your money <g>