Strange MTF problem on some Timeframes.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #139718 quote
    ESCapedTestSubject
    Participant
    Average

    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 quote
    GraHal
    Participant
    Master

    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 quote
    Nicolas
    Keymaster
    Master

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

    #139747 quote
    ESCapedTestSubject
    Participant
    Average

    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 quote
    GraHal
    Participant
    Master

    Any ideas?

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

    #139757 quote
    Nicolas
    Keymaster
    Master

    Do you have time based conditions in the code?

    #139761 quote
    ESCapedTestSubject
    Participant
    Average

    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 quote
    ESCapedTestSubject
    Participant
    Average

    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.

    Nicolas thanked this post
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.

Strange MTF problem on some Timeframes.


ProOrder: Automated Strategies & Backtesting

New Reply
Summary

This topic contains 7 replies,
has 3 voices, and was last updated by ESCapedTestSubject
5 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/21/2020
Status: Active
Attachments: No files
Logo Logo
Loading...