I am working with several instruments which get different data numbers. I was wondering if it was possible to specify the data number as an input to an indicator, in order to prevent duplication of indicators.
Thierry
Is it possible to reference data number as an input?
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times
Re: Is it possible to reference data number as an input?
Dear Thierry,
Yes it is possible:
Yes it is possible:
Code: Select all
input: data_num(2);
plot1(average(close, 10), of data(data_num));
- Dave Masalov
- Posts: 1712
- Joined: 16 Apr 2010
- Has thanked: 51 times
- Been thanked: 489 times