Here it is
But when I tried to call them in the strategy, the signals no longer overlap. Then I decided to write an indicator that would display these two parameters directly as a curve.
Just like this
And this is what I saw
That is, these two output parameters (Pbuy and Psell) simply copy the price value, although everything works fine in the original indicator.
In the original indicator I use the - Displacement parameter, maybe the conflict arises because of it? Although I don't know how that could be connected.
Please help to understand as I have this problem for the first time.
Forgot to add that to build the signals I used a loop, something like this
var x = new double[N];
for (var i = 0; i < N; i++)
{
Psell[i] = .........;
}
For the second signal the same thing
And in Properties prescribed here is so...
#region Properties
[Browsable(false)]
[XmlIgnore]
public DataSeries Pbuy
{
get { return Values[0]; }
}
[Browsable(false)]
[XmlIgnore]
public DataSeries Psell
{
get { return Values[1]; }
}
Comment