Setting Trading Start Time
Author: joannakim
Creation Date: 7/18/2013 9:48 PM
profile picture

joannakim

#1
Hi. I have a custom strategy that is coded. It is coded on daily bar with limit price entry. I, however, would prefer not to take any trades before certain time: say 10 AM. Is there code written somewhere by Cone, Eugene or someone else that I could import into my strategy code? Thanks.
profile picture

Eugene

#2
Of course you can not do this using Daily data (i.e. peek inside a daily bar), in the context of backtest trades. You must use intraday data for that. The rest is described in the Knowledge Base article: Building blocks of Intraday trading strategies > "Function to easily determine and compare time of day".
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).