Dear experienced Amibroker programmers,
I have a very simple strategy whose rules I have written in afl and used this afl to backtest my strategy and optimise it on various products.
But currently I am trying to test this strategy in international markets which are 24 hour in nature, like dow futures , crude oil and eur/usd etc.
But it is natural that no one is capable of sitting for trading throught these hours. So I want to sit to trade from 12:30 pm IST to 10:00 pm IST.
So I want to filter my entry and exits in these time period only. example If I get a signal before 12:30 then the backtester should not register this trade and list only those trades which get triggered after 12:30. and also square off the trades at close of candle at 10:00 pm.
Can anybody here tell me what lines I must add in my afl code to achieve this?
Thanx a lot in Advance. It will be of great help to me.
Regards,
A.......X
I have a very simple strategy whose rules I have written in afl and used this afl to backtest my strategy and optimise it on various products.
But currently I am trying to test this strategy in international markets which are 24 hour in nature, like dow futures , crude oil and eur/usd etc.
But it is natural that no one is capable of sitting for trading throught these hours. So I want to sit to trade from 12:30 pm IST to 10:00 pm IST.
So I want to filter my entry and exits in these time period only. example If I get a signal before 12:30 then the backtester should not register this trade and list only those trades which get triggered after 12:30. and also square off the trades at close of candle at 10:00 pm.
Can anybody here tell me what lines I must add in my afl code to achieve this?
Thanx a lot in Advance. It will be of great help to me.
Regards,
A.......X