Type : Indicator, Name : Trades After the Fact
INPUT:
BQUALIFY(2),
PQUALIFY(2);
IF H >= H[1] AND L >= L[1] THEN BEGIN
IF VALUE2 >= BQUALIFY THEN BEGIN
PLOT3(L[1],»MAJLOW»);
IF CHECKALERT THEN ALERT = TRUE;
END;
IF VALUE2 > 0 THEN
Value5=L[1];
VALUE1 = VALUE1+1;
VALUE3 = VALUE1;
VALUE2 = 0;
END;
IF L <= L[1] AND H <= H[1] THEN BEGIN
IF VALUE1 >= BQUALIFY THEN BEGIN
PLOT4(H[1],»MAJHIGH»);
IF CHECKALERT THEN ALERT = TRUE;
END;
IF VALUE1 > 0 THEN
VALUE6 = H[1];
VALUE2 = VALUE2 +1;
VALUE4 = VALUE2;
VALUE1 = 0;
END;