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

RE: EL: pass/reference data set?



PureBytes Links

Trading Reference Links

Another way to do this is to use the HASHNUMS DLL.
This adds Object like structures to Easy language.

A demo can be obtained from the web site below

Quality Trading Innovation
qtrade@xxxxxxxxxxxxxx
www.ozemail.com.au/~qtrade


-----Original Message-----
From:	Dave [SMTP:yankee93@xxxxxxxxxxxxxxxx]
Sent:	Monday, 23 February 1998 7:37
To:	omega-list@xxxxxxxxxx
Subject:	Re: EL: pass/reference data set?

EL doesn't use objects (data sets).  However, I've created "pseudo objects"
as follows:
  Create a Text Variable (say, NY_ValStr("");
  Create a user function to change the inputs into strings, and append each
        		string onto the other; the return will be a string
	      Example:
	     (userFun #1 - named ValtoStr)
		Inputs: Val1(NumericSimple), Val2(NumericSimple), 			Val3(NumericSimple),
... etc...- as many values as you 			need.	  

		ValToStr=NumToStr(Val1,2)+ " " + NumToStr(Val2,2) + " " +
NumToStr(Val3,2);
	[I put spaces between the string elements for better identification in a
		print screen]


  In the main body of your program, you can then say:
	NY_ValStr=ValToStr(open of Data7, High of Data7, Low of Data7, Close of
Data7)

You can later access any element of your pseudo-object by saying:
	ValueX (or numeric variable)=StrToNum(<RightStr>(NY_ValStr,6));
       [the RightStr would be a LeftStr or a MidStr, whatever is applicable,
	    and the number would be the count from the right or left of the 
	    string--see EL manual]

You could also set up a 2nd user function to perform the String-to-Number
 conversion shown above.

It ain't pretty, but it works.  Hope this helps.

Dave


At 07:31 AM 2/22/98 -0700, Earl Adamy wrote:
>When passing multiple series within the same data set, it seems both
>wasteful and repetitive to require an input for each series:
>
>    NyOpen(Open of Data7),
>    NyHigh(High of Data7),
>    NyLow(Low of Data7),
>    NyClose(Close of Data7),
>    SpOpen(Open of Data3),
>    SpHigh(High of Data3),
>    SpLow(Low of Data3),
>    SpClose(Close of Data3);
>
>Does anyone know if there is a way to pass and use a reference to a complete
>data set rather than each of its data series? Something along these lines:
>
>    NySet(Data7),
>    SpSet(Data3);
>    If Close of NySet > Close of SpSet .......
>
>Earl Adamy
>