♥ 0 |
Hello. Great resources here. However, I couldn’t find a solution for my issue: I built a strategy for backtesting based on a 1hour chart. I need to exit trades within the 1hr candle (intrabar/ on 5min candles for instance). Otherwise, the stop might get triggered intrabar but the strategy exits the trade on the open of the following hour. Is this even possible? Thanks guys.
Marked as spam
|
Private answer
Chart strategies and studies are only able to look to higher time frames. They cannot look to lower time frames. So whatever is the lowest time frame from which you need the strategy to act, that is the time frame you need to apply to the chart. In this case it would be the 5 min time frame for your chart. Then you need to write your code to reference the higher time frame to get the data from the 1 hour candles. Writing chart strategies that reference higher time frames (or multiple higher time frames) is beyond the ability of most novice programmers. So unless you have been writing code as your full time profession for 5 or more years you should not be trying to mix time frames in a chart strategy. The following video will demonstrate the main issue that must be accounted for when building MTF chart strategies for back-testing: https://www.hahn-tech.com/thinkorswim-strategy-guide-mtf/
Marked as spam
|
Please log in to post questions.