Professional Documents
Culture Documents
// Version 1.5
express Avail_PPoints
vars
input
$StartHour(0,2300,2100);
numeric
Whigh, Wlow,
Lhigh, Llow, Lclose,
i1ststart,
i2ndstart,
daycount,
L_PP,
L_R3, L_M5, L_R2, L_M4, L_R1, L_M3, L_M2,
L_S1, L_M1, L_S2, L_M0, L_S3;
series
PP,
line,
S1,S2,S3,
R1,R2,R3,
M0,M1,M2,M3,M4,M5,
x,y;
calculation
CalculateAtEveryTick(false);
SetYscaleFormat(GetPriceFormat());
if (TimeToNumeric(timeopen) = $StartHour) then
begin
daycount = daycount + 1;
if daycount = 1 then
begin
//highlight("slot","green");
i1ststart = CurrentBarIndex();
Whigh = high;
Wlow = low;
end
if daycount = 2 then i2ndstart = CurrentBarIndex();
end
if daycount = 1 then
begin
if (high > Whigh) then Whigh = high;
if (low < Wlow) then Wlow = low;
end
x = Lhigh;
y = Llow;
//z = i2ndstart;
interpretation
begin
end
//plot(x,blue,2);
//plot(y,red,2);
//plot(z,green,2);
plot(R3,lightred,1);
plot(M5,red,1);
plot(R2,lightgreen,1);
plot(M4,red,1);
plot(R1,lightblue,1);
plot(M3,red,1);
plot(PP,blue,2);
plot(M2,red,1);
plot(S1,lightblue,1);
plot(M1,red,1);
plot(S2,lightgreen,1);
plot(M0,red,1);
plot(S3,lightred,1);
//plot(line,black,1);//@@@cs:929844-3823383-778815_cs@@@