When I set the Swing Indicator in relation to itself, I run into some problems.
When I code:
if (Swing1.SwingLow[1] >= Swing1.SwingLow[2])
{
SetParabolicStop();
}
And when I then backtest it, it does not set the stop according to the rule, but randomly.
I checked the line of code also with the strategy builder, and it builts the line the same way.
Anybody an idea whats going on there?
Thanks in advance, traders.
Comment