I have some questions:
I thought that TimeNum() returned the time stamp of an existing bar, so that if you were using 1 minute bars, you would not get the signal until 125600, or with 5 minute bars until 130000. Is that not correct?

Wouldn't it be better to use either TimeNum() >= 125500 (for backtesting); and Now(4) > 125500 (for real time trading)?

-- Keith

On 8/6/2010 10:24, Sidney Kaiser wrote:

Thanks, so simple..I just wasn't seeing the answer.  Sid

--- On *Fri, 8/6/10, reinsley /<[email protected]>/* wrote:


    From: reinsley <[email protected]>
    Subject: Re: [amibroker] EOD exit
    To: [email protected]
    Date: Friday, August 6, 2010, 12:22 AM




    Hi,

    Buy = âEUR¦your conditionsâEUR¦.
    Sell = âEUR¦.your conditionsâEUR¦. OR TimeNum() > 125500;

    For example - MACD crossover :

    Buy = Cross( MACD(), Signal() );
    Sell = Cross( Signal(), MACD() ) OR TimeNum() > 125500;


    Best regards

    Le 06/08/2010 05:45, Sidney Kaiser a écrit :
    Hi Gang,
    I'm evaluating a simple day trading concept and I need a quick
    and easy way to exit the trade at 1255 hours.  What code do I
    need to exit either short or long near EOD.
    TIA
    SId





Reply via email to