Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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());
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kaywai, 09-01-2023, 08:44 PM
      5 responses
      601 views
      0 likes
      Last Post NinjaTrader_Jason  
      Started by xiinteractive, 04-09-2024, 08:08 AM
      6 responses
      22 views
      0 likes
      Last Post xiinteractive  
      Started by Pattontje, Yesterday, 02:10 PM
      2 responses
      19 views
      0 likes
      Last Post Pattontje  
      Started by flybuzz, 04-21-2024, 04:07 PM
      17 responses
      230 views
      0 likes
      Last Post TradingLoss  
      Started by agclub, 04-21-2024, 08:57 PM
      3 responses
      17 views
      0 likes
      Last Post TradingLoss  
      Working...
      X