読み取り専用

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

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

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

ご参加ください Discord YouTube

This is a template of a strategy, not a complete strategy

3件の返信

フィリップ・ファン・コラー

顧客、bpb_participant、コミュニティ、28件の回答。.

プロフィールを表示

1年前 #291596

こんにちは、,

I’m having issues with some of my custom block (I assume) not being able to generate the source code like Tradestation Easylanguage.

Please see strategy attached.
Also here is the pseudo code:

 

//——————————————————————–
// Pseudo Source Code of Strategy 0.38434
//
//   Generated by StrategyQuant X Build 142 for MetaTrader
//   at 10/14/2025 13:12
//
//   Backtested on @ES_SQ / M15, 2010.01.03 – 2020.12.31
//   Backtest engine: Tradestation
//——————————————————————–
//——————————————————————–
//  Strategy Parameters
//——————————————————————–
int MagicNumber = 11111;
int ATRPeriod1 = 14;
int RSICrossPeriod1 = 6;
double PriceEntryMult1 = 0.5;
double PriceEntryMult2 = 1.6;
int ATRPeriod2 = 20;
メインチャート = 現在のシンボル / 現在の TF;
//——————————————————————–
//取引オプションのロジック
//——————————————————————–
Don’t Trade On Weekends = false (Friday 0038 – Sunday 0038);
Exit at End Of Day = false (1600);
Exit On Friday = false (1530);
LimitSignalsTimeRange = false (0600 – 1400, Exit at End: false, Orders to close: All);
LimitMaxDistanceFromMarketPrice = false;   //Limit max distance
MaxDistanceFromMarketPct = 6;   //Max distance %
MaxTradesPerDay = 0;
Min SL: 0、Max SL: 0、Min PT: 0、Max PT: 0; // ticks/pips単位で、0は無制限です
//——————————————————————–
// 取引ルール:取引シグナル(バーオープン時)
//——————————————————————–
LongEntrySignal = ((((Low(Main chart)[1] – High(Main chart)[8]) < (ATR(Main chart,ATRPeriod1)[1] * 0.40))
   and CustomBlock:London(){((Bar Time[1] >= GetTime(2, 0, 0))
   and (Bar Time[1] < GetTime(11, 0, 0)))})
   and Candle pattern on Main chart 1 bars back is Doji);
ShortEntrySignal = false;
LongExitSignal = ((RSI(Main chart,RSICrossPeriod1, PRICE_CLOSE)[1] crosses above 80)
   or  CustomBlock:End of Week(){((Bar Day of Week[0] = Friday)
   and (Bar Time[0] >= GetTime(15, 30, 0)))});
ShortExitSignal = false;
//——————————————————————–
// 取引ルール:ロングエントリー(バーオープン時)
//——————————————————————–
if ((LongEntrySignal
   そして、Not ShortEntrySignal)
   and Not LongExitSignal)
{
    // アクション #1
    Open Long order at ((LowDaily(Main chart)[1] + (PriceEntryMult1 * (HighDaily(Main chart)[1] – LowDaily(Main chart)[1]))) + (PriceEntryMult2 * ATR(Main chart,ATRPeriod2)[1])) Stop;
        重複した取引:無効化済み;;
        Replacing pending orders: allowed;
}
//——————————————————————–
// 取引ルール:ショートエントリー(バーオープン時)
//——————————————————————–
if ((ShortEntrySignal
   そして、LongEntrySignal)
   and Not ShortExitSignal)
{
    // アクション #1
    マーケットでショートオーダーを開く;;
        重複した取引:無効化済み;;
}
//——————————————————————–
// 取引ルール:ロング・エグジット(バーオープン時)
//——————————————————————–
if (LongExitSignal
   and (MarketPosition(“Current”, MagicNumber, “”) is Long))
{
    // アクション #1
    Close Full position for Symbol = Current and Magic Number = MagicNumber;
}
//——————————————————————–
// 取引ルール:ショート・エグジット(バーオープン時)
//——————————————————————–
if (ShortExitSignal
   and (MarketPosition(“Current”, MagicNumber, “”) is Short))
{
    // アクション #1
    Close Full position for Symbol = Current and Magic Number = MagicNumber;
}
Broker: No filter
添付ファイル:
に違いない ログインしました 添付ファイルを表示するには.

0

フィリップ・ファン・コラー

顧客、bpb_participant、コミュニティ、28件の回答。.

プロフィールを表示

1年前 #291599

The error:

0

フィリップ・ファン・コラー

顧客、bpb_participant、コミュニティ、28件の回答。.

プロフィールを表示

1年前 #291602

Image attached.

添付ファイル:
に違いない ログインしました 添付ファイルを表示するには.

0

フィリップ・ファン・コラー

顧客、bpb_participant、コミュニティ、28件の回答。.

プロフィールを表示

1年前 #291604

I was able to pinpoint the problem with OpenD() and CloseD() in one of my custom blocks.
Using those seems to cause the code generator to not work.

0

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