“「パラメータに値を設定する」機能が正しく動作しない
3件の返信
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
こんにちは,
some values are fixed values set by strategy builder. These will not be included among strategy parameters for optimization
0
In my example, why is period fixed at 12 bars in Low(12) and High(12) ?
0
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件中)