The errors could be translated something like, that for the Open command in the variables, an "object link" is needed. The second error says, that the "double" type can't be converted in "int".
Of course the Open[1] was just an easy example. A bit more complicated could be Open[1]+0.02*Close[1] for example.
Sepp

The problem is, that I first have to even define, what the profit target is. And this doesn't work, because if I use variables in SetProfitTarget, the variable doesn't allow me to define it as Open[1] or anything like that. The German error message is:
Now there's only the problem with the selling after one bar. Am I right with trying with Barssinceentry > 0?
Comment