Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 05-21-2008, 01:26 PM   #1

Join Date: Nov 2006
Location: N/A
Posts: 613
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts



Difference Between Closed(1) and Close[1]

Hi All

I am trying to plot a simple Relative Strength indicator in EL. When I plot RSVal based on the following code:

if c/closed(1)>(c of data2/(closed(1) of data2))then RSVal=1;
if c/closed(1)<(c of data2/(closed(1) of data2))then RSVal=-1;

I get different results than when I plot if based on the following code:

if c/close[1]>(c of data2/(close[1] of data2))then RSVal=1;
if c/close[1]<(c of data2/(close[1] of data2))then RSVal=-1;

I thought that closed(1) and close[1] would be the same? I guess not? Can someone please tell me what the differences are?

Regards
- Fanus
sevensa is offline  
Reply With Quote
Old 05-21-2008, 01:31 PM   #2

Blu-Ray's Avatar

Join Date: Nov 2006
Location: England
Posts: 508
Ignore this user

Thanks: 164
Thanked 288 Times in 105 Posts



Re: Difference Between Closed(1) and Close[1]

CloseD - Assigns the Close of the previous day on an intraday chart, whereas close[1] is the close of 1 bar ago.

Hope this helps

Blu-Ray
__________________

“ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google
Blu-Ray is offline  
Reply With Quote
The Following User Says Thank You to Blu-Ray For This Useful Post:
sevensa (05-21-2008)
Old 05-21-2008, 01:38 PM   #3

Join Date: Nov 2006
Location: N/A
Posts: 613
Ignore this user

Thanks: 62
Thanked 294 Times in 177 Posts



Re: Difference Between Closed(1) and Close[1]

Ok, this makes sense. Thank you for the quick response.

- Fanus
sevensa is offline  
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference? Richard III The Candlestick Corner 4 09-07-2007 09:29 AM
Difference between now and February 27 notouch Market Analysis 10 08-26-2007 03:49 AM
What happened after market close? TinGull General Discussion 4 01-10-2007 09:06 PM
Futures Hi/LO/Close Bfbusa Market Analysis 2 12-05-2006 08:32 PM

All times are GMT -4. The time now is 06:06 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.