Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is it possible to open chart from from inside a custom indicator script?

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

    #16
    Also if I need to calculate WilliamR with on additional series with period of 720, my CurrentBars[1] should be at least 720 to return accurate value? Currently, it stays static at around 443
    If there a way to force the number of bars to keep?

    Comment


      #17
      Hello azh_ali,

      Thanks for your reply.

      The 443 sounds like the number of bars that have been loaded in the chart, I would suggest increasing the number of days to load until you do get the 720 at a minimum.

      Yes, you would want at least 720 bars for a 720 period indicator.

      Comment


        #18
        Right, thats what I was asking.

        My first series which is EURUSD chart 1 second chart has 172K+ bars in the CurrentBars[0]
        My second series which is added using code AddDataSeries("GBPUSD",BarsPeriodType.Second, 1); only got 443 in the CurrentBars[1]

        How can I get second series to load more than 720 bars as well?

        Comment


          #19
          Hello azh_ali,

          Thanks for your reply.

          Before you had added a 720-second bar series and had 443 bars, now you are saying you have changed that to a 1-second bar series and only get 443 bars?

          I would suggest removing the indicator from the chart and then reapplying it.


          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          607 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          353 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X