Wieso ist das so? Wie soll man denn mit der RSQuared-Funktion mit Variablen arbeiten?
Gibts ein workaroung (außer externe (VB) Programmierung) ?
Hallo,
Vorschlag für einen Workaround:
calc a: llvbars(close, 45);
calc b: (
if(a > 1 and a < 2, RSquared( close, 1 ) or
if(a > 2 and a < 3, RSquared( close, 2 ) or
if(a > 3 and a < 4, RSquared( close, 3 ) or
...
);
calc EnterLong: b < 0.9
Fehlerbehandlung (a hat ungültige Werte, z.B. 0 oder a ist außerhalb eines Erwartungsbereichs) müsstest Du noch einbauen.
Viele Grüße