PureBytes Links
Trading Reference Links
|
It is not real clear what you are looking for but I assume you are looking for daily values in an intraday RadarScreen using an array.
Something like this should be close:
Vars: HH(High), LL(Low), OO(Open), j(0);
Array: dOpen[1000](0), dHigh[1000](0), dLow[1000](0), dClose[1000](0),
if High > HH then HH = High;
if Low < LL then LL = Low;
if Date > Date[1] the begin
j = j + 1;
dOpen[j] = OO[1];
dHigh[j] = HH[1];
dLow[j] = LL[1];
dClose[j] = Close[1];
HH = High;
LL = Low;
OO = Open;
end;
But remember that the daily closing value determined from intraday data will not quite be the same as the official closing price (since they manipulate the official price... :-) ).
Bob Fulks
At 06:16 PM 1/8/2006, Mark Baum wrote:
>I AM TRYING TO PROGRAM AN EL INDICATOR TO RETURN(IN THE MOST EFFICIENT
>MANNER POSSIBLE TO MINIMIZE CPU USAGE AND TO GAIN SPEED),
>THE VALUES OF THE FOLLOWING, IN ORDER TO BE USED IN VARIOUS CONDITION TESTS
>: THESE VARIABLES WOULD BE USED IN RADARSCREEN ON AN INTRADAY BASIS BUT
>REFERENCING DAILY VALUES.
>
> WEEK 1 - OPEN,CLOSE,HIGH,LOW
> DAY(4) - OPEN,CLOSE,HIGH,LOW
> DAY(3) - OPEN,CLOSE,HIGH,LOW
> DAY(2) - OPEN,CLOSE,HIGH,LOW
> DAY(1) - OPEN,CLOSE,HIGH,LOW
> DAY(0) - OPEN,CLOSE,HIGH,LOW
>
>Using opend(1), closed(1), closew(1) etc slows down tradestation too much.
>As I understand, writing code with arrays is one option.
>
>Could anyone direct me to sample code that will give these values to be used
>in various condition tests, or where I might go to get the code?
>
>Thanks
>
>
>Mark Seal
|