Mit diesem Befehl sollte doch die Farbe der Indikatorlinien dynamisch verändert werden, oder habe ich da etwas falsch verstanden?
Code:
if (a>0) {
SetIndexStyle(1, DRAW_LINE, EMPTY, EMPTY, Red);
SetIndexStyle(2, DRAW_LINE, EMPTY, EMPTY, Red);
}
else {
SetIndexStyle(1, DRAW_LINE, EMPTY, EMPTY, Lime);
SetIndexStyle(2, DRAW_LINE, EMPTY, EMPTY, Lime);
}
Bei meinem Indikator verändert sich gar nichts, egal, welche Werte a annimmt.