NexusFi: Find Your Edge


Home Menu

 





difference between prevclose and close of 1 day ago??


Discussion in EasyLanguage Programming

Updated
    1. trending_up 4,899 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
adam081527
Hong Kong
 
Posts: 10 since Feb 2012
Thanks Given: 7
Thanks Received: 4

hi there,

i have a question on easylanguage, could anyone pls tell me what's the difference between prevclose and close of 1 day ago for ES??

it looks like they give different value as well as backtest results,

many thanks,

bgds,

A


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The 50/50 Paradox: Peace and Invasion Each at 20% -- Ira …
Prediction Markets & Event Contracts
Sundays Verdict: Lebanon Locked at 99.85% as Iran June 7 …
Prediction Markets & Event Contracts
Day 96 Missiles Hit Kuwait and Bahrain: June 15 Peace at …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
Al Arabiya: US-Iran Draft Deal Within Hours Contains Hor …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 thanks
  #3 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 691



adam081527 View Post
i have a question on easylanguage, could anyone pls tell me what's the difference between prevclose and close of 1 day ago for ES??

PrevClose is a quote field that cannot be referenced historically. In other words, PrevClose is only available with real-time data, and you can't say something like "PrevClose[2]" of two bars ago.

Close is the closing price which can be referenced historically (for example with Close[2]).

Monday morning, on the first bar of the day for ES, the following will be true*:
 
Code
Close[1] = PrevClose
However, for the next bars this won't be true any more, since Close[1] will then refer to the previous bar, and not to Friday's last bar.


*: Might depend on your RTH / ETH setting for the chart.


Reply With Quote
Thanked by:
  #4 (permalink)
adam081527
Hong Kong
 
Posts: 10 since Feb 2012
Thanks Given: 7
Thanks Received: 4


Jura View Post
PrevClose is a quote field that cannot be referenced historically. In other words, PrevClose is only available with real-time data, and you can't say something like "PrevClose[2]" of two bars ago.

Close is the closing price which can be referenced historically (for example with Close[2]).

Monday morning, on the first bar of the day for ES, the following will be true*:
 
Code
Close[1] = PrevClose
However, for the next bars this won't be true any more, since Close[1] will then refer to the previous bar, and not to Friday's last bar.


*: Might depend on your RTH / ETH setting for the chart.

got it, thanks Jura


Reply With Quote
Thanked by:




Last Updated on June 30, 2012


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts