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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          75 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          152 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          101 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          289 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X