+1 888 340 6572 



Post new topic Reply to topic 
easylanguage question   [ ]
Author Message
#1 posted 13 Mar 2012 

Status: Offline
Posts: 17
Thanks Received: 0 time
Thanks Given: 10 times
Joined: 13 Mar 2012
wanted to run an indicator that compares the close to the previous 20 closes...can I use... if close > close(close,20) then...?

the indicator compiles but I cant tell if its working.

I'm new to easylanguage and multicharts so I'm unable to get a backtesting optimization working properly.

Thanks


#2 posted 13 Mar 2012 
User avatar

Status: Offline
Posts: 4952
Thanks Received: 1270 times
Thanks Given: 795 times
Joined: 29 Aug 2006
rbn60604@yahoo.com wrote:
wanted to run an indicator that compares the close to the previous 20 closes...can I use... if close > close(close,20) then...?

the indicator compiles but I cant tell if its working.

I'm new to easylanguage and multicharts so I'm unable to get a backtesting optimization working properly.

Thanks


see FAQ post #1
viewtopic.php?f=16&t=6929



For this message the author TJ has received thanks:
rbn60604@yahoo.com


#3 posted 13 Mar 2012 

Status: Offline
Posts: 17
Thanks Received: 0 time
Thanks Given: 10 times
Joined: 13 Mar 2012
Thank you for the help.

Just double checking, the close > close[20]....does that only compare the 20th bar to the current close or does it compare each of the previous 20 bars?

thanks again.


#4 posted 13 Mar 2012 

Status: Offline
Posts: 513
Thanks Received: 190 times
Thanks Given: 270 times
Joined: 09 Apr 2010
The close > close[20] just compares the current Close to the Close 20 bars ago, if you want the highest close over 20 bars then something like this-
Close > highest(close[1],20);



For this message the author sptrader has received thanks:
rbn60604@yahoo.com


#5 posted 14 Mar 2012 

Status: Offline
Posts: 17
Thanks Received: 0 time
Thanks Given: 10 times
Joined: 13 Mar 2012
ah, makes sense....thanks very much



Post new topic Reply to topic