variable passed in function  [SOLVED]

Questions about MultiCharts and user contributed studies.
shivax
Posts:90
Joined:02 Sep 2013
Has thanked: 37 times
variable passed in function

Postby shivax » 29 May 2018

hi,
look that :

var;H(0);
H=high;

if lastbaronchart then Print(TrovaValore(H));
function TrovaValore
Input:Hig(numercsimple);
var:tmp(0),HighValue(0);

for tmp=0 to currentbar begin
if Hig>HighValue then HighValue=high;
end;

return HighValue;

it's possible to do this? (it is an example)

it is possible to know the historical value of variable Hig into function?

shivax
Posts:90
Joined:02 Sep 2013
Has thanked: 37 times

Re: variable passed in function  [SOLVED]

Postby shivax » 29 May 2018

i find error….

I must declare NumericSeries instead of NumericSimple


Return to “MultiCharts”