PureBytes Links
Trading Reference Links
|
Hi,
I wanted an indicator that would plot (in subgraph 1) the Highest High or
the Lowest low beginning with a specified date, in other words the Highest
from Date. This function gives me the HighestSoFar even before the Date,
despite trying to make it begin from the date. Thanks.
Brent
Input: ndate(numericsimple);
Var: sbar(0);
if C>0 then HighestFromDate=C;
if date = ndate then
sbar = currentbar;
if sbar <> 0 then begin
if H > HighestSoFar(H)[1] then
HighestFromDate=H
else
HighestFromDate=HighestSoFar(H)[1];
end
|