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

[amibroker] Re: dynamic Y-axis scaling.



PureBytes Links

Trading Reference Links

Tomasz,

which graph does the auto-scaling keyed on to calculate min,max?  
graph0, graph1 ...?  If I only use plot statement then the first plot 
is what it used to calculate min, max?  Thanks

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> 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@xxxx>
> 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@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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 ---------------------~-->
Get a FREE REFINANCE QUOTE - click here!
http://us.click.yahoo.com/2CXtTB/ca0FAA/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/