Hi.
How can we especify a time range in EL using as the start point the previous day?
Let me explain, ES starts trading at 4:30 pm ET until 4:15 ET the next day. How can I write this in EL? How can I "call" for a especific hour from yesterday until today's?
For EL, the trading starts at midnight. Date() or Time() functions are examples of that.
I know I need to say something like:
time > 1630 and time < 1615
The questions is how to say that 1630 is yesterday's time
Now another question, this time about the Highest() / Lowest() functions.
How can I plot the first hour trading, or better said, how can I plot the highest and lowest price made in the first trading hour?
All the highest() and lowest() functions have a period parameter. In this case I don't need a period parameter since the period is given by a specific time range.
In Metastock this should be something like; ValueWhen(1,tRange,HighestSince(1,start,High)). In english this says to plot the most recent highest high since the start (hour selected), for the most recent time range (trading session) selected. ValueWhen() function would then extended those values until the end of the time range selected.
I tried something like this:
stTime = 0930;
enTime = 1030;
condition1 = time>stTime and time<enTime;
if condition1 then
Plot1(highd(0));
But this only plots the highest high for the selected period of time not extending until the end of the trading session.
I also thought about using the trendline functions but when I started to see them I just said that was to much for my newbie knowledge
I appologise for the length of this post.
Too many questions poping at the same time :|
regards
Fernando
How can we especify a time range in EL using as the start point the previous day?
Let me explain, ES starts trading at 4:30 pm ET until 4:15 ET the next day. How can I write this in EL? How can I "call" for a especific hour from yesterday until today's?
For EL, the trading starts at midnight. Date() or Time() functions are examples of that.
I know I need to say something like:
time > 1630 and time < 1615
The questions is how to say that 1630 is yesterday's time
Now another question, this time about the Highest() / Lowest() functions.
How can I plot the first hour trading, or better said, how can I plot the highest and lowest price made in the first trading hour?
All the highest() and lowest() functions have a period parameter. In this case I don't need a period parameter since the period is given by a specific time range.
In Metastock this should be something like; ValueWhen(1,tRange,HighestSince(1,start,High)). In english this says to plot the most recent highest high since the start (hour selected), for the most recent time range (trading session) selected. ValueWhen() function would then extended those values until the end of the time range selected.
I tried something like this:
stTime = 0930;
enTime = 1030;
condition1 = time>stTime and time<enTime;
if condition1 then
Plot1(highd(0));
But this only plots the highest high for the selected period of time not extending until the end of the trading session.
I also thought about using the trendline functions but when I started to see them I just said that was to much for my newbie knowledge
I appologise for the length of this post.
Too many questions poping at the same time :|
regards
Fernando