I am trying to create a backtesting strategy for a donchain channel strategy for CL 08-22. I want the system to buy when it closes above the 55 period channel and exit when it closes below the 20 period channel. On the normal charts you can put an offset of 1, but in the strategy I do not see how to do this but I need this for my entries. There is something called displacement but that seems to work differently.
It buys in very random places and does not sell at my stops nor does it follow my exit strategy. It just exits at the end of day.
Also, how do I set to only test during normal trading hours of 9-230 EST?
Thank you!
Comment