Hi,
I’m implementing a MTF strategy, but I have run up to some very strange problems.
Timeframe 1: I have set this to Daily, UpdateOnClose
Timeframe 2: I have set this to Default, Default
If I run the strategy on a chart of 2-24 hours it works fine. If I run it on 120 minutes it works fine. But if I run it on 1 hour, or anything below 1 hour, I get no trades!
I have even tried to change TimeFrame1 to be 24 Hours. No success.
I can’t see anything that would cause this in the code as there are no conditional time limitations.
Can anyone give me a clue?
But if I run it on 1 hour, or anything below 1 hour, I get no trades!
Any different if you change Timeframe 2 to (1 hour)?
Try to expand the units available on your chart (data history).
I have tried everything from maximising to 100K history to a few thousand with no difference. I believe that a 1 hour or 8 hour bar is based on the same datafeed. The difference is how candles are shown.
I have also tried entering 1 hour, 30 minutes etc in timeframe nr 2. It just doesn’t work. Very odd that anything below 2 hours (either having a 1 hour chart or 60 minutes) leaves no trades when I have roughly 60 trades for the other timeframes (2,3,4,8,12 and 24 hours) for the chart…
Any ideas?
Any ideas?
If you post your code I would run it on my Platform if that might help?
Do you have time based conditions in the code?
No time based conditions.
I’ll try to break down the code step by step and see if I can find what it is.
Ok! Found it. One of the indicators I copied into the strategy had CustomClose. I never reacted to it which I should have 🤦♂️
Strange that it only affects 1 hour and below timeframes…
Thanks anyway.