Search found 4 matches

by kitwckalex
15 Nov 2009
Forum: MultiCharts
Topic: Problem in creating new function - a beginner question
Replies: 6
Views: 1629

Thanks a lot.

It complied sucessfully.

:D
by kitwckalex
15 Nov 2009
Forum: MultiCharts
Topic: Problem in creating new function - a beginner question
Replies: 6
Views: 1629

The function name is DayTrueHigh, same as the output name.

When creating this new function, I choose the return type as numeric and function storage as auto-detect. Does this make a difference?
by kitwckalex
14 Nov 2009
Forum: MultiCharts
Topic: Problem in creating new function - a beginner question
Replies: 6
Views: 1629

var: DayTrueHigh(0);

if CloseD(1) > HighD(0) then
DayTrueHigh = CloseD(1)
else
DayTrueHigh = HighD(0);
Thanks geektrader.
But this compiled with error:

"syntax error, unexpected 'function return value', expecting 'identificator'
errLine 1, errColumn 5, errLineEnd 1, errColumnEnd 5"
by kitwckalex
14 Nov 2009
Forum: MultiCharts
Topic: Problem in creating new function - a beginner question
Replies: 6
Views: 1629

Problem in creating new function - a beginner question

I am creating a new function with the following codes. if CloseD[1] > HighD then DayTrueHigh = CloseD[1] else DayTrueHigh = HighD; But when compiled, it shows "Invalid number of parameters. 1 parameter(s) expected errLine 1, errColumn 3, errLineEnd 1, errColumnEnd 3" How could I solve this? Thank yo...

Go to advanced search