Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bools current vs past

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

    Bools current vs past

    Is there a way to define a bool to time? Usually you just ask the question "is this bool true now". But I need a condition that says "what was the state of a bool ABarAgo".

    If (bool1[1])
    do something;
    ...I know this will not work...Cannot apply indexing with [] to an expression of type 'bool'

    Or does the bool just need to be created referenced to ABarAgo?
    Thanks

    #2
    Ken, you can use BoolSeries for this.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan

      I'll give that a try.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, Yesterday, 11:51 AM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, Yesterday, 11:48 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-25-2026, 09:53 PM
      0 responses
      30 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 03-25-2026, 09:51 PM
      0 responses
      18 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 03-23-2026, 11:13 AM
      0 responses
      24 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X