PureBytes Links
Trading Reference Links
|
Hi Tom,
How about something like:
//Trim seconds off the time
HHMM = TimeNum/100;
// Buy at 14:30, 17:00, 17:30 & 18:00
Buy = HHMM == 1430 Or HHMM == 1700 Or HHMM == 1730 Or HHMM == 1800;
Cheers,
Ian
--- In amibroker@xxxxxxxxxxxxxxx, "professor77747" <professor@xxx>
wrote:
>
> I would like to run a backtest that will buy at 4 specific times
during
> the day.
>
> I have a formula that will do that, but when I backtest it will only
> buy at 3 times which are the times that I have on the database
> settings. I don't know how to get the backtest to use the times in my
> formula.
>
> I use a day/night chart.
>
> Basically, I would like to buy at the same times as the times on the
> backtest so I can compare my actually auto trading with the backtest.
I
> realize that there will be some difference in the results because the
> trades will be at slightly different times, but it will be close
enough
> for my purposes.
>
> I am not a programmer, but I can make simple changes to a formula.
>
> Please advise. Thanks,
> Tom
>
------------------------------------
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/
|