This is my first post, trying to learn EL thru tutorials. I am attempting to create a signal where I can enter a position in reference to where last bar (intraday) is between a time range
inputs:
myEntryTime ( 900),
myCutoffTime (1100);
if (time > myEntryTime) and (time < myCutoffTime) then begin
variables:
conditionMidpoint=0;
conditionHigh=0;
conditionLow=0;
//entry condition
if (close > ??? //trying to buy if close is greater then high of "inputs" range.
Basically get stumped here. I need to signify High low MIdpoint for the "inputs" range selected?
Any help would be appreciated
High low midpoint
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Code: Select all
Inputs:
Session_Start(930), Session_End(1615);
vars:
G_H(0), G_L(0), Globex(false);
If Globex and Time >= Session_Start and time < Session_End then
Globex = false;
if not Globex and Time >= Session_End then begin // Should only execute first tick of Globex session
G_H=High; G_L=Low;
Globex = True;
end;
If Globex then begin
If High>G_H then G_H=High;
if Low< G_L then G_L=low;
end;
Plot1(G_H,"G-High");
Plot2(G_L,"G-Low");