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 charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          64 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          149 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          162 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          99 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          286 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X