Difference Between Closed(1) and Close[1] - Traders Laboratory
Forum Guidelines | Contact Us
Home

Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-21-2008, 12:26 PM
sevensa has no status.

 
Join Date: Nov 2006
Posts: 92
Thanks: 7
Thanked 18 Times in 14 Posts
This member is the original thread starter. 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

Reply With Quote
  #2 (permalink)  
Old 05-21-2008, 12:31 PM
Blu-Ray's Avatar
Blu-Ray has no status.

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 426
Thanks: 105
Thanked 53 Times in 34 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

__________________
Remember - Take the path of least resistance.
Reply With Quote
The Following User Says Thank You to Blu-Ray For This Useful Post:
sevensa (05-21-2008)
  #3 (permalink)  
Old 05-21-2008, 12:38 PM
sevensa has no status.

 
Join Date: Nov 2006
Posts: 92
Thanks: 7
Thanked 18 Times in 14 Posts
This member is the original thread starter. Re: Difference Between Closed(1) and Close[1]

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

- Fanus

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -4. The time now is 04:11 AM.

 

 
 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76