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

[amibroker] pairs trade buy/sell signal on a minute/minute basis



PureBytes Links

Trading Reference Links

I am trying to write a pair/trading buy/sell signal generator and trader.  I already have the  long and short signals coded.  Here is a SIMPLIFIED (too long to post, but this example will do) version below :

Buy = Cross( MACD(), Signal() );
Sell = Cross( Signal(), MACD() );

I would like to do this REAL time. ie, starting at the 9:30am open for a list of NDX-100 stocks.

I can run the backtester/explorer to generate a list of stocks with these signals every minute for the CURRENT DAY.  And then trade them manually.  But I would like to automate it.  How can I programaticaly come up with a REAL time list (well, every minute) of buy/sell signals then enter a trade and close it.  PROGRAMATICALLY is the key.  Is the best way to do this is to compare the current symbol, with everyone in group by using a built in function to get the list of stocks in a group?  But this would mean 100x100 lookups for every minute the test is run. [and the backtest problem - see below]

This leads to another question, how can I backtest this to see if it works?  Since the buy/sell signals have to be created at the same TIME, how do I set the backtester to do this?

This must have been done before.  

I think I can code this if someone pushes me into the right direction...




------------------------------------

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

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/