Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

last vs close

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

    last vs close

    Hi. I am not sure what the difference between LastClose and LastPrice is. Can you help me with that?

    #2
    Hello kalkanis,

    The LastPrice is going to be the last trade price, and the LastClose is going to be the previous days closing price.
    JCNinjaTrader Customer Service

    Comment


      #3
      Thank you. So this means that when markets are closed, last and close price coincide, right?
      how can I build an indicator based on close price, for instance SMA(14)? i only found the option to choose "last"price, but not close price...

      Comment


        #4
        kalkanis, unfortunately the LastClose would not be directly available as input series for the SMA calculations. As potential workaround I would look into having your SMA being calculated on a daily series for example.

        Comment


          #5
          I am afraid that I do not understand your answer. Can you please elaborate more?

          Also, can you confirm if markets are closed, last and close price coincide? (in which case SMA would actually be calculated on closing prices)..

          Comment


            #6
            The LastClose would be directly coming from the data provider, so is the closing price as of the native session they would use for the instrument - this would usually be an event happening for every day, hence the idea to run your SMA on a daily price chart.

            Comment


              #7
              Let me see if I understand. Suppose I have a SMA(14) indicator on market-analyzer, based on EoD quote from Yahoo. If I calculate such SMA while the market is open, it would use the closing price for days -1/-13, and the last price for day 0 (current day). However, if I calculate it when the market is closed, it would use the closing price for all 14 days (0/13). is that right.

              Comment


                #8
                You Yahoo feed would provide EOD data, so that's correct - for other feeds that would allow access to realtime data as well, the behavior for the current bar / candle would be determined by the CalculateOnBarClose setting you use -

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                41 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                124 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                64 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                41 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X