Hello,

you could use the status function with "firstvisiblebar" and "lastvisiblebar" as parameters to request the visibles bars. Thereafter you can search for the lowest low and highest high inside this range. I think there is a easier solution in the most recent AB version, but I'm not sure right now.

Best regards,
Web: www.PatternExplorer.com <http://www.PatternExplorer.com/>

Am 12.06.2010 08:44, schrieb jorgen_wallgren:
Hi Steve,

Your suggestion is simple and very nice! I never thought about that! However, 
it assumes that the Max and Min Values always are specified and constant- which 
they are not. It could as well be +0.5 and -2.34.

But it's a very good start!!! Thank you!!!

Now I just have to figure out how to best find the Max&  Min values depending 
on which values are visible on the screen, so the majority of the tops and bottoms 
are not cut off- and at the same time the graph is clearly visible.

Ideas are very much welcome! :-)

Regards,

Jorgen

--- In [email protected], "Steve Dugas"<sjdu...@...>  wrote:
Hi - How about something like this...

RelPct = YourCalc;
RelPct = Max( Min( RelPct, 50 ), -50 );


----- Original Message -----
From: "jorgen_wallgren"<jorgen.wallg...@...>
To:<[email protected]>
Sent: Friday, June 11, 2010 10:59 PM
Subject: [amibroker] How Do You Handle Plotting Huge Max/Min Values In An
Indicator?


Hi there!


I have a problem I am hoping someone on the list can help me to solve. I
have an Indicator (in it's own pane) which gives me a relative percentage
value. At the market opening, this value can sometimes be very big or very
small- for example oscillate between +245% and -450%. So at the opening I
can clearly see in which direction the indicator goes and everything is
great.

But after a while when things cool down, the relative percentage value
will go down and it can then oscillate between for example between -20%
and +30% for the remaining time of the trading day.

Due to the huge difference between these values during the day and the
opening values, all I now can see  is a plot of the opening values and the
lower values are now just a thin line. Sure- I could of course just zoom
in so the initial plotting of the huge values disappear from screen. But
then I loose bar resolution and I want to display a full trading day.

So I was thinking that this can probably be solved by some code which cut
off the "abnormal" opening values, once the Relative Percentage comes
closer to the normal values- so I can clearly see the graph.

But I have not yet been able to figure out a good way to handle this
automatically via code?

Any suggestions? Anyone have solved this?

Thanks and Regards,

Jorgen



------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links







------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links




Reply via email to