When moving the Entry anchor, the Reward and Risk anchors are not updated as the anchor is moved. The tool is only updated after editing is complete (clicking off the tool) or by subsequently moving the Risk or Reward anchor.
This can be fixed by replacing the following code snippet in the OnMouseMove override:
else if (DrawingState == DrawingState.Editing && editingAnchor != null)
{
dataPoint.CopyDataValues(editingAnchor);
if (editingAnchor != EntryAnchor)
{
if (editingAnchor != RewardAnchor && Ratio.ApproxCompare(0) != 0)
SetReward();
else if (Ratio.ApproxCompare(0) != 0)
SetRisk();
}
}
else if (DrawingState == DrawingState.Editing && editingAnchor != null)
{
dataPoint.CopyDataValues(editingAnchor);
if (editingAnchor == EntryAnchor)
{
if (Ratio.ApproxCompare(0) != 0)
{
SetReward();
SetRisk();
}
}
else
{
if (editingAnchor != RewardAnchor && Ratio.ApproxCompare(0) != 0) SetReward();
else if (Ratio.ApproxCompare(0) != 0) SetRisk();
}
}

Comment