[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: barvisible and lowest low ?



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, Anthony Faragasso 
<ajf1111@xxxx> wrote:
> Could someone check this.....using the Status("Barvisible") function...I
> can not seem to get the lowest low value returned...although the 
Highest
> High returns ok.
> 
> Thank you in advance
> Anthony
> 
> barvisible=Status("barvisible");
> 
> Maxh=LastValue(Highest(IIf(barvisible,H,0)));
> Minl=LastValue(Lowest(IIf(barvisible,L,0)));
> 
> Title="Lowest Low = "+WriteVal(Minl,1.2)+"... Highest High ="
> +WriteVal(Maxh,1.2);
> 
> Plot(C,"",colorBlack,styleCandle);

I tried the following, but it doesn't work. When I move the vertical line 
the values change. And I don't understand why you use lastvalue() 
AFAIK this should not be necessary in this case, or am I completely 
wrong?

Highvis = Highest(IIf(Status("barvisible"), H, Lowest(High)));
Lowvis = Lowest(IIf(Status("barvisible"), L, Highest(Low)));

Title = "Highest = " + WriteVal(Highvis, 1.2) + " Lowest = " + 
WriteVal(Lowvis, 1.2);

Plot(Close, "", colorBlack, styleCandle);


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/