Strange MTF problem on some Timeframes.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #139718 quote
    ESCapedTestSubjectESCapedTestSubject
    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
    GraHalGraHal
    Participant
    Legend

    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
    NicolasNicolas
    Keymaster
    Legend

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

    #139747 quote
    ESCapedTestSubjectESCapedTestSubject
    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
    GraHalGraHal
    Participant
    Legend

    Any ideas?

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

    #139757 quote
    NicolasNicolas
    Keymaster
    Legend

    Do you have time based conditions in the code?

    #139761 quote
    ESCapedTestSubjectESCapedTestSubject
    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
    ESCapedTestSubjectESCapedTestSubject
    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 ESCapedTestSubjectESCapedTestSubject
6 years, 2 months ago.

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