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

Re: [amibroker] dynamic Y-axis scaling.



PureBytes Links

Trading Reference Links

Hello,

First of all - this is done AUTOMATICALLY if you select 'auto-scalling'
option in Indicator Builder.

It is easy, to get highest and lowest value of all quotes IN THE DATABASE 
 instead of LLV and HHV use Lowest() and Highest() functions:

http://www.amibroker.com/guide/afl/afl_view.php?name=LOWEST
http://www.amibroker.com/guide/afl/afl_view.php?name=HIGHEST

to get highest and lowest value of all quotes inside visible area use:

array = ROC( Close, 10 );

visible = Status("barvisible");

HH = LastValue( Highest( IIF( visible, array, -999999 ) ) );
LL =  LastValue( Lowest( IIF( visible, array, 999999 ) ) );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "mmqp" <mmqp@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, April 07, 2003 10:09 PM
Subject: [amibroker] dynamic Y-axis scaling.


> I want to adjust MinVal and MaxVal in "plot" dynamically.  Here is my 
> code:
> 
> minScale = lastvalue (lowest (Low));
> maxScale = lastvalue (highest (High));
> 
> Problem with these codes is it will give the highest/lowest of bars 
> loaded.  I'd like to just limit to bars within the display only; this 
> should also change when I shrink/expande bars.  Can AB do this?
> 
> Thanks
> 
> 
> 
> 
> 
> 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/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
FREE Cell Phones with up to $400 Cash Back!
http://us.click.yahoo.com/_bBUKB/vYxFAA/i5gGAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/