I have an indicator and this indicator gives me an arrow up and an arrow down as an indication. I have already tried to give these indications a value (Arrow up is 1, Arrow down is -1, else is 0), but this is still not working.
This is the part of the script where I use the ArrowDown and ArrowUp part:
else if (Close[0] > Value[1])
{
trail = Close[0] - loss;
SignalValue = 1;
Draw.ArrowDown(this, CurrentBar.ToString(), false, 1, Value[1], Brushes.Orange);
}
else
{
trail = Close[0] + loss;
Draw.ArrowUp(this, CurrentBar.ToString(), false, 1, Value[1], Brushes.Orange);
I have tried to set a value together with the "Draw" commant, but this is also not working.
Hopefully anybody knows how to deal with this.
Comment