Hi - How about something like this... RelPct = YourCalc; RelPct = Max( Min( RelPct, 50 ), -50 );
----- Original Message ----- From: "jorgen_wallgren" <[email protected]> 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 > > > >
