DINGO:
You know, sometimes when I frame the question I "get" the answer, so this early morning conversation is kind a
like talking to myself, but I knew I'd get some help.  Guess you know the definition of a "code monkey"?  This
is one of many new things I learned at the conference.  Also heard of reusable code?   

Thanks Dingo, "you da dude".  That will work just fine because an HTML page is where I'm heading with this info.   
 
We missed you at the conference? someone asked about you.
 
Tomasz:  Thank you for all this work. I love the KB and the Development Log approach;  and I know it will save you
and Marcin a lot of steps as well as handling the repetitive questions from many new subscribers as well as oldsters with memory problems.
 
To resize the image is not a big thing and dingo's recommendation to resize using HTML will work for what I want. The goal is to report
YTD returns in a tabular form and with a drill down link/icon to an equity chart, along with MPT metrics... MDD, UPI, NCAlpha, Sharpe.
 
Best regards
Joe  
 
 
----- Original Message -----
From: dingo
Sent: Tuesday, March 07, 2006 9:56 AM
Subject: RE: [amibroker] jScripts to produce and save PNG plots.

that was an interesting conversation "we" had...
 
Now that you've RTFM   I'm sorry to report that I know of no easy way to do what you want via a script.
 
What is the end goal for the image? If its to display for someone you could:
 
send the image along with an html that will resize it before it displays.  Something like this:
 
<html>
<head>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="refresh" content="60">
</head>
<Body>
<BODY TEXT="#FFFFFF" LINK="#0000FF" VLINK="#800080" ALINK="#C000C0" BGCOLOR="#000000">
<div align="center"><img src=""http://files.wtoc.com/weather/radar/dopplermax.jpg">http://files.wtoc.com/weather/radar/dopplermax.jpg" width="546" height="385">
The last line has the path for the image (could be a diskfile) and the width and height thingys give the resultant image dimensions.
 
d


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Landry
Sent: Tuesday, March 07, 2006 8:57 AM
To: [email protected]
Subject: Re: [amibroker] jScripts to produce and save PNG plots.

For those of you bored with this trail, sorry, hit delete.  The method does save the image but still need
image size adjustments.
 
Apologize for not testing it first before asking questions, but any help would be appreciated/
 
  AB.ActiveWindow.ExportImage("Test.png");    
 
Best regards
JOE
From: Joe Landry
Sent: Tuesday, March 07, 2006 7:28 AM
Subject: Re: [amibroker] jScripts to produce and save PNG plots.

Hi Dingo - Before you say RTFM, (;>  I found your slide show script with what looks like to be all the
elements of doing what I want, except to save the image.  I need to find the source of the documentation
on the ActiveWindow object.
 
JOE  
----- Original Message -----
From: Joe Landry
Sent: Tuesday, March 07, 2006 7:04 AM
Subject: Re: [amibroker] jScripts to produce and save PNG plots.

Ah! I found a clue to how I might be able to do this. (it was in my own Infoselect database) but could use additional help

in how to manage the image size if possible.  

Best regards

Joe

 

 

Example script:

AB = new ActiveXObject("Broker.Application");

AB.ActiveWindow.ExportImage("Test.png");

----- Original Message -----
From: Joe Landry
Sent: Tuesday, March 07, 2006 6:53 AM
Subject: [amibroker] jScripts to produce and save PNG plots.

Hi Gents: (Fred, Dingo, Dan)
 
I'd like to produce 5 plots produced from 5 equity composites for a web site.
I'm tracking "guru" stock pickers on a web site and I'd like to automate the production of the image
display of their record on a weekly basis.
 
Being a real "code monkey", I know how to string batch steps using jScript to produce these equity curves(ATCs),
but I'd like to automate and produce, save the PNG images in order that I could post them and display them on the web site.
I know this was discussed several months ago when it came to controlling the shape/size of the png image but I can't find the
discussion nor the object/method in the COM model that will give me the hooks to do this.  (I promise, I 
googled it on purebytes and couldn't find it but maybe it's more recent than that).  Fred in IO is able to drive this function
to produce the backtest version of the equity plot, but my requirement is more simple than that.
 
I guess if the image had an Amibroker watermark/attribution it would be all the better for the author and community. (;>
 
Thanks in advance
JOE   


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS




Reply via email to