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