I would like to have the Data Nb as an input in a signal.
This works fine if I simply use that:
Code: Select all
Inputs: DataNb(2) ;
If BarStatus(DataNb) = 2 then
begin
// whatever calculation based directly on Data(DataNb)
end;
Code: Select all
Inputs: DataNb(2) ;
Vars: Price(0, Data(DataNb)) ;
Price = Close Data(DataNb) ;
If BarStatus(DataNb) = 2 then
begin
// whatever calculation based on the variable "Price"
end;
syntax error, unexpected 'identificator', expecting 'numeric constant'
Thanks for your help !