PureBytes Links
Trading Reference Links
|
: I am trying to use built-in functions like HighD and Range etc. Except
that
: I want to use them on a hidden data which is inserted as data item number
2.
: Its easy with MA's etc because you can pass the reference. How do you
: reference this data number with these functions.
Open up the function and copy the contents to paste to a new function with a
different name. And in the new function, go thru and change where they use
'High' to high of data2.
{*******************************************************************
Description: High of Day
Provided By: Omega Research, Inc. (c) Copyright 1999
********************************************************************}
Inputs: DaysAgo(Numeric);
Variables: Day1Done(0);
Array: HighArray[50](-1);
If DataCompression < 2 Then Begin
If Date > Date[1] Then Begin
Day1Done = Day1Done + 1;
For Value1 = 50 DownTo 1 Begin
HighArray[Value1] = HighArray[Value1-1];
End;
HighArray[0] = High;
{change the high from above to high of data2}
End;
If Day1Done>0 AND High > HighArray[0] Then
{change the high from above to high of data2}
HighArray[0] = High;
{change the high from above to high of data2}
If DaysAgo <= 50 Then
HighD = HighArray[DaysAgo];
End;
{Forcing the function to series}
Value1 = HighD[1];
|