Michael, Thanx for the sample code. It looks like it does many of the types of things I want to do. What I am really trying to do is duplicate my Stockcharts list in AmiBroker. The problem with Stockcharts is that I must do everything manually and the lines tend to move over time. If I could dynamically create the lines each time I pull up the chart with exact start/end points then the scaling and line position would take care of themselves through the replot.
http://stockcharts.com/def/servlet/Favorites.CServlet?obj=ID1744189 In simple design code, it looks like I need to: -Setup/initialize -Grab two data sets (OHLC/Date) based on the mouse pointer - I don't know how to do this yet -Do my mystical calculations -Do a number of HLINE/Plot calls such as: Hline = LineArray(x0,y0,x1,y1,0); Plot(HLine ,"CycleLine",colorYellow,styleLine); Once I get it drawing the lines, I will worry about saving and retrieving the state data necessary to bring back saved charts. If you have any more suggestions or code samples you think may help I appreciate your help. Thanx. Andy --- In [email protected], "Michael.S.G." <[EMAIL PROTECTED]> wrote: > > Andy, > No it's not expecting too much of AmiBroker. > However what with saving & loading, It can get quite complicated. > You can hack this code to your own ends, But it's complicated and a bit > messy too. > http://www.amibroker.org/3rdparty/BasicPortfolioTracker_V3.02.zip > > ATB > Michael. > > > Andy Askey wrote: > > > > Hi. I need some help from one or more of the "experts" here with > > respect to a project I am working on. All I need to know is if what I > > want to do is doable. If the answer is yes/probably I will research > > Amibroker/AFL in depth. If the answer is no then I will probably > > build an application myself. > > > > I want to select two points on the chart with the mouse (probably the > > high and low of the timeframe I am viewing). > > > > I want to take the price and date data from the high and low points > > and perform some simple math on the numbers. I will calculate the > > slope of the line, the number of calendar days between the high and > > low, and do some SQRT functions. The output from the math will be > > used to automatically draw lines on the chart. > > > > I want to take the results and have Amibroker/AFL draw several > > horizonal, vertical, and digonal lines on the chart. > > > > I want to save these settings so that the next time I pull up this > > chart the lines will be there (or will be calculated and drawn > > quickly). > > > > Please let me know if this is expecting too much from AFL. > > > > Thanx. > > Andy Askey > > > > > 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/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> 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/
