easylanguage question

Questions about MultiCharts and user contributed studies.
rbn60604@yahoo.com
Posts: 18
Joined: 13 Mar 2012
Has thanked: 10 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: 6304
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 951 times
Been thanked: 1814 times

Re: easylanguage question

Postby TJ » 13 Mar 2012

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
These users thanked the author TJ for the post:
rbn60604@yahoo.com

rbn60604@yahoo.com
Posts: 18
Joined: 13 Mar 2012
Has thanked: 10 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: 608
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 367 times
Been thanked: 224 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);
These users thanked the author sptrader for the post:
rbn60604@yahoo.com

rbn60604@yahoo.com
Posts: 18
Joined: 13 Mar 2012
Has thanked: 10 times

Re: easylanguage question

Postby rbn60604@yahoo.com » 14 Mar 2012

ah, makes sense....thanks very much


Return to “MultiCharts”