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.
        BertrandNinjaTrader Customer Service

        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.
            BertrandNinjaTrader Customer Service

            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 -

                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by llanqui, Today, 03:53 AM
                0 responses
                6 views
                0 likes
                Last Post llanqui
                by llanqui
                 
                Started by burtoninlondon, Today, 12:38 AM
                0 responses
                10 views
                0 likes
                Last Post burtoninlondon  
                Started by AaronKoRn, Yesterday, 09:49 PM
                0 responses
                15 views
                0 likes
                Last Post AaronKoRn  
                Started by carnitron, Yesterday, 08:42 PM
                0 responses
                11 views
                0 likes
                Last Post carnitron  
                Started by strategist007, Yesterday, 07:51 PM
                0 responses
                14 views
                0 likes
                Last Post strategist007  
                Working...
                X