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

[amibroker] How do I... (generating 5 second delayed bars)



PureBytes Links

Trading Reference Links

Hello,

Here is the problem that I need to solve to make RT day trading  
backtesting more realistic.  I have a 5 second database that is loaded  
into my charts as minute timeframe.  Backtesting on this data is not  
realistic because it does not take into consideration the RT lag from  
actual exchange executions to the time that AB can get the data,  
generate a buy order and have the order sent and executed at the  
current market price.

I would like to have a 5 second delayed version of my minute data that  
I can read in as a foreign symbol.  I would like to generate signals  
on the normal bars, the use the close of 5 second time offset bars for  
the execution price in backtests.

Note: This is not using the built-in back tester, but my own AFL  
written realtime BT, so I can generate whatever it takes.

Obviously, I can run everything at the 5 second timeframe, but that is  
very awkward and runs very slow.

Does anyone have an elegant approach to automatically generate this 5  
second time offset data ticker.

Thanks in advance,
Dennis

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

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/