読み取り専用

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

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

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

ご参加ください Discord YouTube

Stochastic Syntax

1件の返信

strvinmarvin

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

プロフィールを表示

4年前 #279954

こんにちは,

 

I have noticed that functions in the PseudoCode and in the other Engines can sometimes be somehow customized. For example there is an SQ_ prefix on SQ_Stochastic() and this is not a function that is in the MT5 general library.

This makes it difficult to interpret and use in other languages such as Haasscript and Python.

Pseudo:
Stochastic(Main chart, <span style="”text-decoration:" underline;”>StochSlowDKPeriod, StochSlowDDPeriod, StochSlowDSlowing</span>).Slow%D[1] > 7
MT5:
indicatorHandles[STOCHASTIC_1] = iCustom(NULL,0, “SqStochastic”, <span style="”text-decoration:" underline;”>StochSlowDKPeriod</span>, <span style="”text-decoration:" underline;”>StochSlowDDPeriod</span>, <span style="”text-decoration:" underline;”>StochSlowDSlowing</span>, MODE_SMA, STO_LOWHIGH);
This code for example, utilizes some naming conventions that are not readily apparent.
In the STOCH function in another language, I find that it’s looking for:
  1. fastK – 番号

    Fast %K period length.

  2. slowK – 番号

    Slow %K period length.

  3. slowD – 番号

    Slow %D period length.

Searching for MT5 syntax and function help didn’t solve the issue since they don’t have this Function called “SqStochastic”.  I figured this might be my limited knowledge on MT5 but I found the same in MT4, Tradestation, and JForex code examples, with similar lack of info on google.

 

Could someone point me in the right direction of where I can find out what the calculations/code is “behind the psuedo-code functions” that were used in the backtest?  So for example if I ran the Builder using the MT5 engine, then where can I find the Formula or details of the Parameter Inputs that MT5 is expecting so that I can kind of “convert” that over to other languages that don’t ask for the same names?

ありがとうございます!

0

Tomas Matejka

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

プロフィールを表示

3年前 #280103

こんにちは、,

navigate to the internal\extend\Code\MetaTrader5\blocks and you will find templates for all building blocks.

There are function calls and parameter settings. You can also look into the source code of the indicator itself.

Indicators can be found in custom_indicators\MetaTrader5\Indicators. Alternatively, you can also look at Java snippets as well

0

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