Plot Buy Sell Signal after a particular time in amibroker

Hi everyone. In AFL I’m using time filter, buy or sell signal are plotted after 9.30 if they are generated just before 9.30 or after 9.30. but when this buy or sell generated on 9.15 or 9.20 or 9.25 they are missed. Is it possible to plot them after 9.30? Thank You.

hi @suvoge,
Following logic might help you.
SECTION_BEGIN(“Tradetime Within TIme”);

/* To restrict trade time*/
BUY_LOGIC_OP = ( Cross( MACD(), Signal() ); // your strategy
Buy = BUY_LOGIC_OP AND timenum()>93000; // take trade time after


Algo_tarder (feel free to get in touch with me for any algo developement 9923587757[WhatsApp])

1 Like