Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

GetCurrentAsk Multi time

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

    GetCurrentAsk Multi time

    What is the correct syntax for GetCurrentAsk() in dual time frame, i.e. for index position (1)?

    Thanks,

    Nigel

    #2
    Hi Nigel,

    Try using this: GetCurrentAsk(int barSeriesIndex)

    Code:
    if (GetCurrentAsk(1) > price)
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thanks, I'd tried this with no success then realise I had another strategy with an error preventing the compile! Why is it that all strategies have to be correct as if you inadvertantly change something it is hell to find if you forget and close that strategy?

      Comment


        #4
        All NinjaScripts need to be error free for the compiler to build properly. If you have errors on other NinjaScripts that you do not wish to deal with at the moment you can double click the red error message in the Compile Errors on the bottom and press Ctrl + A and then comment out the whole file.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          OK Thanks Josh

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          647 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          369 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          108 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          572 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          573 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X