読み取り専用

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

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

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

ご参加ください Discord YouTube

“「パラメータに値を設定する」機能が正しく動作しない

3件の返信

マティー

カスタマー、bbp_participant、コミュニティ、sq-ultimate、102件の返信。.

プロフィールを表示

9年前 #116365

If I select “put values to parameters” for the following, It will never replace 12 with any variable. It even creates a useless parameter called pConsty_1 = 2 that is not needed/used anywhere:

 

Original code:

— 長いエントリ
もし LongEntryConditionが true なら
   if No position is open then Buy at SMA(21) + (-0.8 * ABS(High(12) – SMA(93))) Stop;
   Stop/Limit order expires after 28 bars.

   Stop Loss = (2.09 * ATR(91)) pips;
   Profit Target = 105 pips;
}

Code with parameters:

====================================================================
== Strategy Parameters
====================================================================
pConsty_1 = 2;
pSMA_2 = 21;
pSMA_4 = 93;
ProfitTargetPips = 105;
StopLossCoef = 2.09;
StopLossATR = 91;
LongStopOrderCoef = -0.8;
ShortStopOrderCoef = 0.8;
OrderBarsValid = 28;

====================================================================
== 入会条件
====================================================================
LongEntryCondition = (Day of week = Monday)
ShortEntryCondition = (Day of week = Monday)

====================================================================
== 入札命令
====================================================================
— 長いエントリ
もし LongEntryConditionが true なら
   if No position is open then Buy at SMA(pSMA_2) + (LongStopOrderCoef * ABS(High(12) – SMA(pSMA_4))) Stop;
   Stop/Limit order expires after OrderBarsValid bars.

   Stop Loss = (StopLossCoef * ATR(StopLossATR)) pips;
   Profit Target = ProfitTargetPips pips;
}

— ショートエントリー
もし ShortEntryConditionが true なら
   if No position is open then Sell at SMA(pSMA_2) + (ShortStopOrderCoef * ABS(Low(12) – SMA(pSMA_4))) Stop;
   Stop/Limit order expires after OrderBarsValid bars.

   Stop Loss = (StopLossCoef * ATR(StopLossATR)) pips;
   Profit Target = ProfitTargetPips pips;
}

 

0

Tomas Matejka

管理者、sq-ultimate、2件の返信.

プロフィールを表示

9年前 #141667

こんにちは,

 

some values are fixed values set by strategy builder. These will not be included among strategy parameters for optimization

0

マティー

カスタマー、bbp_participant、コミュニティ、sq-ultimate、102件の返信。.

プロフィールを表示

9年前 #141703

In my example, why is period fixed at 12 bars in Low(12) and High(12) ?

0

マーク・フリック

管理者、sq-ultimate、2件の返信.

プロフィールを表示

9年前 #141754

sorry about this, it is most likely a bug, but we will fix in in the new major version 4, we are reworking the whole variables replacement part

マーク
StrategyQuantアーキテクト

0

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