You are on page 1of 3

// Copyright Fipertec

// 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

if (CurrentBarIndex() >= i2ndstart) and (daycount >= 2) then


begin
// highlight("slot","blue");
if (TimeToNumeric(timeopen) = $StartHour) then
begin
//highlight("slot","blue");
Lhigh = Whigh;
Llow = Wlow;
Lclose = close[1];
Whigh = high;
Wlow = low;
L_PP = (Lhigh + Llow + Lclose)/3;
L_R1 = (2 * L_PP)- Llow;
L_S1 = (2 * L_PP)- Lhigh;
L_R2 = L_PP - L_S1 + L_R1;
L_S2 = L_PP + L_S1 - L_R1;
L_R3 = 2*L_PP + (Lhigh - 2*Llow);
L_S3 = 2*L_PP - (2*Lhigh - Llow);
L_M0 = (L_S2 + L_S3) / 2;
L_M1 = (L_S1 + L_S2) / 2;
L_M2 = (L_S1 + L_PP) / 2;
L_M3 = (L_R1 + L_PP) / 2;
L_M4 = (L_R1 + L_R2) / 2;
L_M5 = (L_R2 + L_R3) / 2;
end
PP = L_PP;
R1 = L_R1;
R2 = L_R2;
R3 = L_R3;
S1 = L_S1;
S2 = L_S2;
S3 = L_S3;
M0 = L_M0;
M1 = L_M1;
M2 = L_M2;
M3 = L_M3;
M4 = L_M4;
M5 = L_M5;
if (high > Whigh) then Whigh = high;
if (low < Wlow) then Wlow = low;
end

x = Lhigh;
y = Llow;

if (daycount <= 1) {and (TimeToNumeric(timeopen) < $StartHour)} then


begin
// highlight("slot","green");
R3 = void;
M5 = void;
R2 = void;
M4 = void;
R1 = void;
M3 = void;
PP = void;
M2 = void;
S1 = void;
M1 = void;
S2 = void;
M0 = void;
S3 = void;
line = void;
x = void;
y = void;
end

//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@@@

You might also like