Try using TimeNum() instead of Minute, ie you can compare to TimeNum() = 100000 [10:00:00am]
--- In [email protected], "nickeykhk" <nickey...@...> wrote: > > I want to test out a day trading strategy based on time e.g. > > enter long at 10:00AM, and then sell at 11:00AM > > Is it possible to do this in Amibroker? I tried something like: > > Buy = Cross(Hour(), 10) AND Cross(Minute(),0); > Sell = Cross(Hour(), 10) AND Cross(Minute(),0); > > > but it doesn't seem to do anything. Can someone help me with this? >
