Traders Laboratory - View Single Post - Easy Language - Help with Simple System
View Single Post
  #8 (permalink)  
Old 12-17-2007, 05:29 PM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is offline
Blu-Ray has no status.

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 427
Thanks: 105
Thanked 54 Times in 35 Posts
Re: Easy Language - Help with Simple System

Quote:
View Post
Blu-Ray:

I know you have coded up some indicators in the past and posted them freely on this forum and for that I thank you for your generosity. I do have a simple EL question for you. How would one store the opening 60 min high and low as a variable to be used for other calculations? Thanks in advance.
Thanks bh_trade

Yes, it would be as waveslider mentioned on his post if your using an hourly chart, or alternatively if your using a smaller timeframe chart, then putting an "endtime" as input would be easy enough for you.

Here's an example of the code you would need.

Inputs:
endtime (1030);

Vars:
HH(0),LL(0);

if date<>date[1] then begin
HH = high;
LL = Low;
end;

if time <= endtime then begin
if high > HH then HH = High;
if Low < LL then LL = Low;
end;


Hope this helps

Blu-Ray

__________________
Remember - Take the path of least resistance.
Reply With Quote