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

Re: [amibroker] Re: Jscript question? How to save off multiple 15 minute charts?



PureBytes Links

Trading Reference Links

Hello,

1. If you are using JScript - in all strings \ is the espace sequence start. So
the backslash is \\ (not \). So your path should be as below.
2. Also LoadLayout is the method of Broker.Application, not standalone function.
 
 AW = AB.LoadLayout("C:\\Program Files\\Amibroker\\Data2007\\Layouts\\15min.awl");
 

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "rlfoxworth2006" <rlfoxworth2006@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, October 27, 2007 9:52 PM
Subject: [amibroker] Re: Jscript question? How to save off multiple 15 minute charts?


> Thanks for your suggestions, but I must still be clueless...., been 
> working with this code forever... today been plugging and testing and 
> haven't got any where.....  Help again please.... Thanks..
> 
> RichardF.
> 
> Tried plugging using: (Data2007 is the location of current DataBase)
> 
> AW = LoadLayout("C:\Program Files\Amibroker\Data2007
> \Layouts\15min.awl");
> 
> 
> 
> The Initial Code Below:
> 
> -----------------------
> 
> iWatchList = 0; /* you can define watch list num operations. ber here
> */
> 
> AB = new ActiveXObject("Broker.Application");
> 
> 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, "Tomasz Janeczko" <groups@xxx> 
> wrote:
>>
>> Hello,
>> 
>> You can do this by using LoadLayout() function (from Application 
> object).
>> 
>> 1. Define separate layout for each interval you want to use
>> 2. Call LoadLayout() to display given interval.
>> 
>> Best regards,
>> Tomasz Janeczko
>> amibroker.com
>> ----- Original Message ----- 
>> From: "murthysuresh" <money@xxx>
>> To: <amibroker@xxxxxxxxxxxxxxx>
>> Sent: Saturday, October 27, 2007 3:54 AM
>> Subject: [amibroker] Re: Jscript question? How to save off multiple 
> 15 minute charts?
>> 
>> 
>> > TJ
>> > How do you then programatically open chart in other timeframes 
> other 
>> > than base interval. Is there any specific function. If you do 
>> > AB.Documents.Open(ticker), it will always open the chart in base 
>> > interval. 
>> > 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
>


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/