Login Page - Create Account

Support Board


Date/Time: Mon, 16 Sep 2024 19:13:54 +0000



Post From: sc.IsSwingLow not working in Replay Backtest

[2024-07-25 19:39:13]
User725043 - Posts: 33
Hi,
sc.AutoLoop = 1;

sc.IsSwingHigh detects fine in both Bar and Replay backtest.

sc.IsSwingLow detects in Bar but not in Replay backtest. Once the Replay backtest is stopped, it does then send a flurry of detect messages, but not during "real-time".

Have tried:
int SwingHigh = sc.IsSwingHigh(sc.BaseData[SC_HIGH], Input_Length.GetInt());
int SwingLow = sc.IsSwingLow(sc.BaseData[SC_LOW], Input_Length.GetInt());
and
int SwingHigh = sc.IsSwingHigh(sc.High, Input_Length.GetInt());
int SwingLow = sc.IsSwingLow(sc.Low, Input_Length.GetInt());

Neither works for sc.IsSwingLow. Other than high/low is there any difference between them for a Replay backtest or anything else needs to be set?