Hi Terry, After I did the loop, it really bogged down the system for some reason and then I looked at your code again and came up with:
PlotShapes(shapeStar * ( C > Ref ( HHV ( H, 251 ), -1 )),colorBlue,0,C,0); That works and no sluggishness. Thanks again. --- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote: > > No loop code is required. Did you try my code? > This is the beauty of arrays. > > If it doesn't work for you, post the code that finds 52 weeks highs. > -- > Terry > > -----Original Message----- > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of mo_means_go > Sent: Wednesday, June 28, 2006 08:33 > To: [email protected] > Subject: [amibroker] Re: How to add Plot Shapes at previous 52 week > highs? > > Thanks Terry, > > I see how to add a plot shape to the current 52 week high and that > would show up as arrows on a scan anyway. I want to see a plot shape > on a 52 week high that may have happened 5 weeks ago for example. > That way I could skim a watchlist and see stocks that had pulled back > from 52 week highs and started to turn back up without having to > resort to a scan. Something tells me I would have to do a loop with a > lookback period set to the time frame I wanted to look back. I'm not > sure how to code the loop if that is required. > > Thanks, > > Mo. > > > --- In [email protected], "Terry" <MagicTH@> wrote: > > > > If you can find them in a scan you can plot them with the same code. > > > > High_52 = your code to find them; //a True or False array > > Plot(C,Name(),colorblack,stylecandle); //a graph to add shapes to > > PlotShapes(ShapeStar * High_52,colorBlue,0,C,0); > > -- > > Terry > > -----Original Message----- > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of mo_means_go > > Sent: Tuesday, June 27, 2006 16:52 > > To: [email protected] > > Subject: [amibroker] How to add Plot Shapes at previous 52 week highs? > > > > I would like to add some type of plot shape to my chart window that > > will show all occurances of previous 52 week highs. I know how to > > scan for them, but how would I go about getting older highs labeled? > > Any ideas? > > > > Thanks, > > > > Mo. > > > > > > > > > > > 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 > ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/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: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
