Strange MTF problem on some Timeframes.

Forums ProRealTime English forum ProOrder support Strange MTF problem on some Timeframes.

Viewing 8 posts - 1 through 8 (of 8 total)
  • #139718

    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?

    #139729

    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)?

    #139733

    Try to expand the units available on your chart (data history).

    #139747

    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?

     

     

    #139752

    Any ideas?

    If you post your code I would run it on my Platform if that might help?

    #139757

    Do you have time based conditions in the code?

    #139761

    No time based conditions.

    I’ll try to break down the code step by step and see if I can find what it is.

    #139764

    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.

    1 user thanked author for this post.
Viewing 8 posts - 1 through 8 (of 8 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login