Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-TimeFrame indicator in a strategy

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

    Multi-TimeFrame indicator in a strategy

    Hi NT,

    I have developed a indicator which takes 5 min granularity of data series to calculate signals.

    My end goal is to take signals from it and develop a strategy on different timeframe.

    When I test it on 5 min chart, It is working as expected. However, When I change the TF from 5 min it isn't giving signals.

    Side Note : I wish to create a package and have a crypt code so passing 5 min data series from the strategy is a no go for me.

    Looking forward to hear from you soon!!

    #2
    Hello dastaan, thanks for writing in.

    Are you getting any errors in the log tab of the Control Center? If not, did you use the Print method in the strategy to see if your trading conditions are actually being hit? e.g.

    if(<condition to trade>)
    {
    Print("Trade Activated");
    EnterLong();
    }

    I look forward to hearing from you.

    Comment


      #3
      Hi Chris,
      I am attaching the indicator script.

      A brief about the script:
      The logic is simple crossover on 5 min timeframe. When I attach it to a chart with timeframe of 5 min it works perfectly, However when I apply the indicator to other timeframe it doesn't work.




      Attached Files

      Comment


        #4
        Hello dastaan, thanks for your reply.

        I ran the indicator on many different time frames and it seems to work fine for me:


        Could you point out a specific scenario where the indicator is not producing the expected output?

        Kind regards,
        -ChrisL

        Comment


          #5
          Generally, I tested it on higher timeframe. In case we test it on Hourly we won't get any signals.
          Otherwise very few compared to what we are getting on the default TF.

          Comment


            #6
            Hello dastaan, thanks for your reply.

            I am able to get signals on a 60 minute chart with an adequate number of days (20 days in this case):



            Try setting your BarsRequiredToPlot property to a lower number, by default it is set to 20.

            Best regards.

            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