easylanguage question

Questions about MultiCharts and user contributed studies.
rbn60604@yahoo.com
Posts: 24
Joined: 13 Mar 2012
Has thanked: 11 times

easylanguage question

Postby rbn60604@yahoo.com » 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

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: easylanguage question

Postby TJ » 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
see FAQ post #1
viewtopic.php?f=16&t=6929

rbn60604@yahoo.com
Posts: 24
Joined: 13 Mar 2012
Has thanked: 11 times

Re: easylanguage question

Postby rbn60604@yahoo.com » 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.

sptrader
Posts: 742
Joined: 09 Apr 2010
Location: Texas
Has thanked: 483 times
Been thanked: 274 times
Contact:

Re: easylanguage question

Postby sptrader » 13 Mar 2012

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);

rbn60604@yahoo.com
Posts: 24
Joined: 13 Mar 2012
Has thanked: 11 times

Re: easylanguage question

Postby rbn60604@yahoo.com » 14 Mar 2012

ah, makes sense....thanks very much


Return to “MultiCharts”