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

[amibroker] need some help with this watchlist mgmt



PureBytes Links

Trading Reference Links

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

<*> 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/