Use StandardDev function in an indicator  [SOLVED]

Questions about MultiCharts and user contributed studies.
LMC1
Posts: 50
Joined: 28 Apr 2013
Has thanked: 29 times
Been thanked: 1 time

Use StandardDev function in an indicator

Postby LMC1 » 01 Aug 2016

Hi,

The following simple codes could not be compiled. Can anyone help please ?

QUOTE
inputs: Length(14);
vars: VolatilitySD(0);

VolatilitySD = StandardDev(C,Length,1);

plot1(VolatilitySD,"Volatility");
UNQUOTE

Thanks.

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

Re: Use StandardDev function in an indicator

Postby TJ » 01 Aug 2016

Hi,

The following simple codes could not be compiled. Can anyone help please ?

QUOTE
inputs: Length(14);
vars: VolatilitySD(0);

VolatilitySD = StandardDev(C,Length,1);

plot1(VolatilitySD,"Volatility");
UNQUOTE

Thanks.
I have no problem compiling the code.

Please take a screen shot of the error message and post it here.

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

Re: Use StandardDev function in an indicator  [SOLVED]

Postby TJ » 01 Aug 2016

ps. please post your questions in the main forum.


ps. please see post #1 and post #2

[FAQ] How to Post Codes (... so that people can read)
viewtopic.php?f=16&t=11713

LMC1
Posts: 50
Joined: 28 Apr 2013
Has thanked: 29 times
Been thanked: 1 time

Re: Use StandardDev function in an indicator

Postby LMC1 » 02 Aug 2016

Thanks TJ for trying to help.
After I did a repair process for MC, the codes were compiled successfully.
Thanks again.


Return to “MultiCharts”