読み取り専用

フォーラムは現在、読み取り専用のアーカイブとなっています。.

バグ報告やプラットフォームに関する質問はこちら → [email protected]

私たちのコミュニティはDiscordとYouTubeで活動しています。ぜひ参加してください!

ご参加ください Discord YouTube

SQ_KSTest

1件の返信

ジェイソン

サブスクライバー、bbp_participant、カスタマー、コミュニティ、sq-ultimate、26件の返信。.

プロフィールを表示

1年前 #289416

I have had a heck of a time working with this function. Some backtests in SQ match the backtest in TS, some do not. It was difficult to track down the problem but I believe I have finally found it. I want to run SQ_KSTest on a higher timeframe but SQx doesn’t not code SQ_KSTest to data2 for reasons I don’t understand. If for instance I choose to run an SMA on data2 it codes that just fine. When I change my template to data2 I get the following EL code:
“Value1= SQ_KSTest(Close,KolmogorovSmrTstPrd11, KolmogorovSmrTstPrd21,0.05)[1];”

When I manually edit the code to look like this:
“Value1= SQ_KSTest(Close,KolmogorovSmrTstPrd11, KolmogorovSmrTstPrd21,0.05) of data2 [1];”

I get the following error:
“Class elsystem.eldouble has no default property or you are attempting to refer to a historical value of a local variable that has no history”.

When I manually edit the code to look like this:
“Value1= SQ_KSTest(Close of data2,KolmogorovSmrTstPrd11, KolmogorovSmrTstPrd21,0.05)[1];”

I get an equally different backtest.

Is there way to get the SQ_KSTest function to reference data2? Otherwise none of these strategies are going to work.

0

ジェイソン

サブスクライバー、bbp_participant、カスタマー、コミュニティ、sq-ultimate、26件の返信。.

プロフィールを表示

1年前 #289417

nevermind, I developed a work around.
change this:
“Value1= SQ_KSTest(Close of data2,KolmogorovSmrTstPrd11, KolmogorovSmrTstPrd21,0.05)[1];
LongEntrySignal = (Value1 = 1);”

to this:
“DataStream2Time = T of data2;

if DataStream2Time <> DataStream2Time[1] Then
Begin
Value1= SQ_KSTest(Close of data2,KolmogorovSmrTstPrd11, KolmogorovSmrTstPrd21,0.05)[1];
LongEntrySignal = (Value1 = 1);
終了;”

0

1件の返信を表示中 - 1 - 1件目 (全1件中)