読み取り専用

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

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

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

ご参加ください Discord YouTube

MetaTrader 4 用のカスタム関数

1件の返信

ハビエル・フェルナンデス

購読者、bbp_participant、顧客、コミュニティ、sq-ultimate、3件の返信.

プロフィールを表示

1年前 #290081

皆さん、こんにちは,

I’ve created several custom functions in Java within StrategyQuant, and they work well inside the platform when building and testing strategies.

However, I have some doubts regarding how these functions behave during strategy export to MetaTrader 4 (MT4):

Do custom functions (e.g., ones defined under Blocks/Functions in Java) automatically get included in the generated .mq4 file when I export a strategy that uses them?

I noticed that in the SQ interface, my functions are showing the message “Missing code for this block in MetaTrader4” (among other platforms).

Does this mean that I need to manually define the export template (XML) for each custom function so that it works properly in MT4 (and in which path)?

If I don’t define the export code manually, does StrategyQuant simply skip the function or raise an error during export?

I’d really appreciate some clarification on this topic, or guidance on how to structure the XML code correctly to ensure the custom function is translated into valid MQL4 code.

Thanks in advance for your help!

0

Tomas Matejka

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

プロフィールを表示

1年前 #290098

Yes, you need to create MQ5 and TPL files to ensure the reference is accurate.

You can find the complete instructions, including TPL and other details, here:
https://strategyquant.com/doc/programming-for-sq/adding-envelopes-indicator-step-by-step/

0

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