[amibroker] Re: How to change watchlist symbols properties with AFL & OLE?

 

this changed the correct symbols' margin deposit then threw error 18 (see first post) at the end of execution:

In the AA window, Apply to -> All symbols, Range -> 1 recent bar(s), Scan

AB = CreateObject( "Broker.Application" );
num = CategoryFind( "MyWatchlist", categoryWatchlist );
list = CategoryGetSymbol( categoryWatchlist, num );

for( i=0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{

st = AB.Stocks( sym );
st.MarginDeposit = 5200;
}

AB.SaveDatabase();

any ideas on the error? thanks

__._,_.___

Posted by: davelin01@outlook.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)

Save time and get your email on the go with the Yahoo Mail App
Get the beautifully designed, lighting fast, and easy-to-use, Yahoo Mail app today. Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv