was exited in the custom backtester. So what I would like to do is:
maxBars = 30;
for(bar=0; bar<BarCount; bar++)
{
for( trade=bo.GetFirstTrade(); trade; trade=bo.GetNextTrade() )
{
if (bar - trade.ExitBar < maxBars)
{
//doSomething with recent trades
}
}
}
however "ExitBar" is not a valid property of tradeObject. Only
ExitDateTime. But DateTime format seems difficult to do timespan
calculations on (unless I missed something). Any suggestions on how
to go about it?
Thanks - and Best regards
Jens Tiedemann
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 other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
| Investment management software | Real estate investment software | Investment property software |
| Software support | Real estate investment analysis software | Investment software |
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
