Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ArrayList.Synchronized Method ??

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

    ArrayList.Synchronized Method ??

    All,

    Is there a more plain english way to describe the ArrayList.Synchronized Method than I can locate on MSDN and other websites?

    I'm looking at storing non-consecutive bar times (CurrentBar values) in one ArrayList and the corresponding values of a SMA that occurred at that time in another ArrayList. By sorting the latter (if it is synchronized with the first), would the Times ArrayList reflect the same movements? I am hoping to isolate the time (bar) the highest or lowest SMA value occurred.

    As always, any suggestions are more than welcome. I could be way off track here.

    Shannon

    #2
    Unfortunately this is beyond what we provide support for. Also: we unlikely could make it any clearer than the MS docs and related samples could.

    Comment


      #3
      Hi Shannon, for your idea in mind, did you already take a look at for example Highest Bar?

      For example highest SMA 10 value (bars ago from current bar) for the current session -

      Code:
       
      Print(HighestBar(SMA(Close, 10), Bars.BarsSinceSession - 1).ToString());

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      152 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      87 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      131 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      127 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      106 views
      0 likes
      Last Post CarlTrading  
      Working...
      X