In a strategy Displacement is off by aprox 4 bars.
In the State.SetDefaults I have displacement set as:
MidPrd = 26; Displacement = MidPrd;
To compare the actual values with the strange displacement issues I drew lines where it should be with the following code:
Draw.Line(this,"Line"+CurrentBar.ToString(),-MidPrd,SpanA[0],-MidPrd,SpanB[0],Brushes.Blue);
Cheers,
Sody
Comment