[amibroker] Enter "x" number of limit orders based off number of open positions

 

http://www.amibroker.com/kb/2014/11/26/handling-limit-orders-in-the-backtester/

What I'm trying to add to a system I'm developing is a way to use limit orders the way I'd be using them in actual trading, where I would enter "x" amount of limit orders in the evening for the next trading day depending on how many open positions I already have.

For example the system has a max open positions of 10. If 7 positions are open and theirs 6 signals for the next day, I only want to enter limit orders the day before for the top 3. The other 3 will be ignored.

I reviewed the bottom AFL of that link from an article from TJ and think it's what I'm looking for but perhaps I'm reading the AFL wrong and the loop.

The only reason I'm not sure is I'd expect some AFL to reference the number of current open positions. Perhaps I need to review the custom backtester for what I want to do?

__._,_.___

Posted by: brandon.richard03@yahoo.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)

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/


.

__,_._,___


EmoticonEmoticon