I am coding an indicator and, in addition to executing an order to enter to the market, I would like to draw a "Risk / Reward" but I get this error: "Unhandled exception: Index was out of range. Must be non-negative and less than the size of collection. Parameter name: index"
Why is not it working this? How could I do it?
protected void Button1_Click(object sender, RoutedEventArgs e)
{
Draw.RiskReward(this, "tag1", true, 0, High[0], 10, Low[1], 1, true);
}

Comment