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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          81 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          41 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          64 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          66 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X