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

RE: [amibroker] Dingo/others , trying ur way. but not there yet



PureBytes Links

Trading Reference Links

How about explaining what you want once again but not the same way.

Where are these "buttons"?

Why do you want the focus to change to the next ticker?

d

> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of murthysuresh
> Sent: Tuesday, May 22, 2007 8:01 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Dingo/others , trying ur way. but not there yet
> 
> 
> 
> 
> Here is the sample that i am writing so that the active document can 
> show whatever ticker i want to show.
> What property should i use. 
> oAB.ActiveDocument 
> 
> 
> The following code opens the ticker in new window, not exactly that i 
> am looking for.
> var oAB = new ActiveXObject( "Broker.Application");
> oAB.Documents.open("YHOO");
> 
> 
> Any help would be appreciated.
> Regards
> Seede
> --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxx> wrote:
> >
> > Try setting the current document to the ticker being moved.
> > 
> > It "might" however, move the focus to the ticker in the "all" 
> branch of the
> > tree.
> > 
> > d
> > 
> > > -----Original Message-----
> > > From: amibroker@xxxxxxxxxxxxxxx 
> > > [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of murthysuresh
> > > Sent: Tuesday, May 22, 2007 3:19 PM
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] need some help with this watchlist mgmt
> > > 
> > > var oShell = WScript.CreateObject("WScript.Shell");
> > > var oAB = new ActiveXObject( "Broker.Application");
> > > Hello
> > > I use this script to clean my watchlists. I have configured few 
> > > buttosm to pass the watchlist no as parameter when clicked.
> > > 
> > > This script moves the symbol from watchlist 1 to the watchlist no 
> > > passed in.
> > > 
> > > However the prob that i have is that, after each click, the 
> watchlist 
> > > that i am working on loses focus and i have to traverse thro the 
> tree 
> > > to hunt and find where i was working. Is there a way that i can 
> > > configure the script so that it takes focus to the next symbol in 
> the 
> > > watchlist
> > > 
> > > for eg.
> > > Watch List Source                 Watchlist Dest
> > > 
> > > 1. Symb A
> > > 2. Symb B
> > > 3. Symb C
> > > 
> > > When i move Symb A to Watchlist Dest, Can the focus be moved to 
> Symb 
> > > B.
> > > 
> > > Any clues is appreciated.
> > > Regards
> > > 
> > > Seede
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  saveTo=WScript.Arguments.Item( 0 );
> > >  delFrom=12;
> > > //get the ticker currently active in AmiBroker
> > > Ticker = oAB.ActiveDocument.Name;
> > > oAS = oAB.Stocks;
> > > oAT = oAS.Item(Ticker);
> > > 
> > > 
> > > if (saveTo <= 32)
> > > oAT.WatchListBits |= 1 << saveTo;
> > > else
> > > oAT.WatchListBits2 |= 1 << (saveTo - 32 );
> > > 
> > > if(delFrom <=32)
> > > oAT.WatchListBits &= ~(1 << delFrom);
> > > 
> > > 
> > > 
> > > oAB.refreshall();
> > > 
> > > 
> > > 
> > > 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
> 
> 
> 
> 



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/