PureBytes Links
Trading Reference Links
|
Update! Sorry... Script I thought was working until a reboot. Script
no longer working corectly or properly. Pleas help..
It pulls the layout, then opens and closes the layout with the right
symbols from the watchlist then continues opening and closing between
the BASE TIME INTERVAL and the new layout window, but then saves the
same image over and over with the BASE TIME INTERVAL with each naming
of the symbols names from the watchlist. All images are then the
same image.
Thanks...
Richard
--- In amibroker@xxxxxxxxxxxxxxx, "rlfoxworth2006"
<rlfoxworth2006@xxx> wrote:
>
> Hi,
>
> Ok this jscript works partly now.... When I run it, it places the
> correct layout and the correct time in the charts window.
>
> BUT it still saves copies of the images with the BASE TIME
INTERVAL...
>
> What now any ideas...
>
> Thanks...
>
> RichardF.
>
>
> -------------------------------------------------
>
>
> iWatchList = 1; /* you can define watch list num operations. ber
here
> */
>
>
> AB = new ActiveXObject("Broker.Application");
>
>
> AW = AB.LoadLayout("C:\\Program Files\\Amibroker\\Data2007
> \\Layouts\\20-min.awl");
>
> Qty = AB.Stocks.Count;
>
> for( i = 0; i < Qty; i++ )
> {
> Stk = AB.Stocks( i );
> if( iWatchList < 32 )
> {
> if( Stk.WatchListBits & ( 1 << iWatchList ) )
> {
> Doc = AB.Documents.Open( Stk.Ticker );
> WScript.Sleep( 4000 ); // 4 seconds delay
> AB.ActiveWindow.ExportImage(Stk.Ticker + ".png")
> Doc.Close();
> }
> }
> else
> {
> if( Stk.WatchListBits2 & ( 1 << ( iWatchList - 32 )) )
> {
> Doc = AB.Documents.Open( Stk.Ticker );
> AB.ActiveWindow.ExportImage(Stk.Ticker + ".png")
> WScript.Sleep( 4000 ); // 4 seconds delay
> Doc.Close();
> }
> }
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "rlfoxworth2006"
> <rlfoxworth2006@> wrote:
> >
> > Ok I had did that..
> >
> > How does this fit into the code?
> >
> > AB.LoadLayout("C:\\Program Files\\Amibroker\\Data2007
> > \\Layouts\\15min.awl");
> >
> >
> > Thanks...
> >
> > RichardF.
>
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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|