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

[amibroker] Re: Possible to retrieve axis scale values?



PureBytes Links

Trading Reference Links

Perhaps this helps:

StartBar= LastValue(Status("firstvisiblebarindex"));

LastBar= LastValue(Status("lastvisiblebarindex"));

Range=LastBar-StartBar;
// You've now defined the range of bars that you see
// Next

HHVRange=Lastvalue(HHV(Varx,Range);
LLVRange=LastValue(LLV(Varx, Range);

//Or you could create a loop in order to specifically define HHV
(Varx, Range)[LastBar], etc.


PS
--- In amibroker@xxxxxxxxxxxxxxx, Andy Davidson <AndyDavidson@xxx> 
wrote:
>
> Does anyone know if it's possible to retrieve the *currently 
displayed* 
> axis min and max values for a given plot?
> 
> I'm trying to scale a binary plot based on the min/max values of 
another 
> plot in the same window. Styleownscale would have been perfect, but 
for 
> the fact that the zero-reference lines don't tie up as the plot is 
> scrolled (the first plot is unbounded a so the zero point shifts up 
and 
> down with auto-scaling - think of something along the lines of an 
MACD 
> Histogram plot).
> 
> The best fix I've found so far is to use the StDev (or HHV/LLV) of 
the 
> first plot to determine a scaling factor for the second plot. The 
> problem with that is that if the StDev range is too short then it 
looks 
> all "wobbly" (i.e., not what binary plots are supposed to look 
like), if 
> it's too long then past values that are off-screen influence the 
> scaling...a problem when they are anomalously high or low in 
relation to 
> the current values. Manual scaling of the "styleownscale" plot type 
has 
> similar problems.
> 
> What I've got serves the purpose in the event that I'm not missing 
> something...if I am though, I'd be grateful if someone could point 
out 
> what it might be.
> 
> Andy
> 
> 	
> 	
> 		
> ___________________________________________________________ 
> Win tickets to the 2006 FIFA World Cup Germany with Yahoo! 
Messenger. http://advision.webevents.yahoo.com/fifaworldcup_uk/
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Everything you need is one click away.  Make Yahoo! your home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

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