I have been having problems with functions when they reference data2 in a signal, I get [Error in study:" " STD exception invalid argument ].
The functions are ok when applied as an indicator and work fine in TS
Funtion on data 2 works in an indicator but not a signal
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times
Problems using data2 in power language signals
Using the following very simple example
VALUE2=HIGHD(0) OF DATA2;
within a signal results in the message:
Error in Study : STD exception : invalid arguement
VALUE2=HIGHD(0) OF DATA2;
within a signal results in the message:
Error in Study : STD exception : invalid arguement
-
- Posts: 407
- Joined: 01 Jan 2008
- Been thanked: 3 times
Not sure if this will work but try using a variable like this code below.-
( also highd(0) function code must refer only to data2- the function might be the problem, if this code doesn't work )
instead of "VALUE2=HIGHD(0) OF DATA2; "
try "vars: Val(0,data2);"
"val= HIGHD(0) OF DATA2;"
I've had problems with multidatas as well. There might be a bug. (I also have a post about multidata problems but my problem is with overlapping multiple indicators using different datas streams- example: 3 rsi's, using d1,d2 and d3 in one indicator window, so the common scaling is correct- using 3 plots, instead of just overlapping 3 indicators-doesn't seem to work- bug maybe ?)
( also highd(0) function code must refer only to data2- the function might be the problem, if this code doesn't work )
instead of "VALUE2=HIGHD(0) OF DATA2; "
try "vars: Val(0,data2);"
"val= HIGHD(0) OF DATA2;"
I've had problems with multidatas as well. There might be a bug. (I also have a post about multidata problems but my problem is with overlapping multiple indicators using different datas streams- example: 3 rsi's, using d1,d2 and d3 in one indicator window, so the common scaling is correct- using 3 plots, instead of just overlapping 3 indicators-doesn't seem to work- bug maybe ?)
Last edited by brodnicki steven on 22 Nov 2008, edited 3 times in total.
Power language with multiple data
Thanks Steven. this syntax seems to work,however, as you mention I think there is compatibility/bug with data2 referencing,
Improved data handling is the main reason why one would use MC over TS so I think this a significant issue.
Would TSSupport like to comment.
Improved data handling is the main reason why one would use MC over TS so I think this a significant issue.
Would TSSupport like to comment.
- Marina Pashkova
- Posts: 2758
- Joined: 27 Jul 2007