Thanks, but I don't find the way of adapt it for my aim. If I buy at 11:00 I can write
Sell = TimeNum() > 130000; but I don't know how remember that I buied at 11 and not at 14, for exemple. with other languagese I use a variable for mind this information, but with amibroker I'm not able to do this. ________________________________ Da: reinsley <[email protected]> A: [email protected] Inviato: Ven 13 agosto 2010, 08:59:27 Oggetto: Re: [amibroker] How can I sell at N bars after buy? Hi, Something you could adapt. http://www.amibroker.com/kb/2006/10/26/how-to-close-open-positions-at-the-end-of-the-day-for-daytraders/ Best regards Le 13/08/2010 08:13, Franca Zelbù a écrit : >The title says all... >If I buy at 11:00, how can I say to amibroker "sell after two hours"? > >
