[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Help! Layout file set for 20 minutes, Images saving with Base Time Interval.



PureBytes Links

Trading Reference Links

when you do .open, it will always open with the base time interval. 
you have to do a application.LoadLayout after that to set it to your 
20 minute layout.

--- In amibroker@xxxxxxxxxxxxxxx, "rlfoxworth2006" 
<rlfoxworth2006@xxx> wrote:
>
> I have no clue here... My Layout file is set for 20 min interval, 
> Images are saving with the Base Time Interval.  
> 
> RichardF.
> 
> 
> Jscript file:  
> ----------------------------------------
> 
> iWatchList = 1 ;  /* you can define watch list num operations. ber 
> here*/
> 
> 
> var AB = new ActiveXObject("Broker.Application");
> 
> 
> AB.LoadLayout("C:\\Program Files\\Amibroker\\Layouts\\default.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();
> }
> }
> }
>




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/