Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multiple time frames in strategy. traded out of timeframe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    multiple time frames in strategy. traded out of timeframe

    i have multiple timeframes in my strategy. i have a timefortrade bool for the timeframes. set to false. when in the timeframe its set to true. then i have in my entry conditions timefortrade equals true. but for some reason the strategy executed out of the timeframe. and, it was right when i enabled it. the entry methods weren't even present.
    Attached Files

    #2
    Hello SteveReiza,

    Thank you for your post.

    What do you mean by the statement "the entry methods weren't even present?"
    What was the time of the execution when you enabled the strategy? What was the name of the order?

    Ultimately, you will need to utilize debugging tools such as TraceOrders and Print statements to understand this behavior and identify what parts of your strategy might need to be corrected. We have information about Trace Orders, which may be enabled on the "Default Properties" screen of the Strategy Builder, as well as a link to a video about adding prints in the builder on the following page:


    Since you are using multiple timeframes, I also suggest reviewing the following help guide page about multi-time frame scripts:


    You could add print statements to Set 1 that show the bar timestamps for each timeframe used when TimeForTrade is set to true. Another thing to consider is, when are you resetting TimeForTrade back to false? You must have a set that checks for the opposite and when it is outside the desired timeframe to set TimeForTrade back to false, otherwise it will stay set to true after the first time it is toggled to true and this could be the culprit that resulted in a trade being taken as soon as you enabled the strategy.

    Please let us know if we may be of further assistance.

    Comment


      #3
      thanks for the reply. i mean i was looking at the chart, and i couldn't see the entry method in the strategy. but, i found the problem. in the set, 'any' was selected. so, soon as i enabled it executed because one of many conditions were true.

      okay sweet. i can print just one set - good to know! i do have timeframe set to re-read it back to false. i think i solved the problem by selecting 'all' in that one set.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      62 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      134 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      75 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      50 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X