Статья посвящена особенностям переноса в MQL5 ценовых конструкций, используемых в индикаторах, написанных на MQL4. Для упрощения переноса индикаторных расчетов из MQL4 в MQL5 предложена библиотека функций mql4_2_mql5.mqh, применение которой рассмотрено на примере переноса индикаторов MACD, Stochastic и RSI.
Индикатор Fisher, рассчитывая минимальные и максимальные уровни цены в предыдущей истории, определяет силу и направление тренда, прогнозируя его смену.
皆さん、私のテスターでは、なぜ4コアのうち半分しか使わないのか、教えてください。
CPUの1/8しかフルに負荷がかからないテストでは、まずまずの結果。
やけに遅いな...。
ありがとうございます。
ビジュアライゼーションによるテストということであれば、問題ないようです。
シングルランの場合、1回の実行に1プロセッサを使用します。
複数のパスでストラテジーをテストしている場合 - CPUのスクリーンショットを1枚撮らないとやっていけませんが、少なくともテスト中にスクリーンショットを撮るべきでしょう
初めてこのフォーラムの記事に従ってMQL4からMQL5にインジケータを変換しようとしたのですが、完成させることができません。
最後の数回のエラーが治らない。
https://www.mql5.com/ru/articles/66
その他に必要なものを教えてください
このブロックは、例えば
対応する行の後にコンパイラーメッセージを 入れました。
stoch, f は、あらかじめ配列の要素として定義されているようです。その後に角括弧を付けると、エラーはその行のさらに先まで飛びます - 次のようなものです。
'smoothType1' - パラメータの変換が許可されていない FT .mq5 173 25
ただの変数です。何が引っかかるのか?
例えばこのブロックは...
"; "の正しさを再確認してみてください。というのも、括弧があるために、エラーがコード内で「浮いて」しまうことがあるからです。
ライブラリを使うより、一度に5つ書く方が楽かもしれませんね。より短くなり、問題も少なくなります。
そうそう、このベースには似たようなフィッシャー・トランスフォームがあるのですが、設定が全くないんです。少なくともENUM_APPLIED_PRICEを変更する必要があり、そこがうまくいきません。
変更方法を教えてください。
https://www.mql5.com/ru/code/537?source=terminal5_mql5
Fisher Transformでは、いくつかの行を追加して、そのうちの1つを手動で選択すると、次のようになります。
//価格=(高値[棒]+安値[棒]+終値[棒])/4.0;
そして、Inputを介して挿入するリベットの数が少ない。
Fisher Transformでは、いくつかの行を追加して、そのうちの1つを手動で選択すると、次のようになります。
//価格=(高値[棒]+安値[棒]+終値[棒])/4.0;
そして、Inputを介して挿入するリベットの数が少ない。
ありがとうございました。もちろん、試してみますが、それがメインではありません。MT-4とは絵柄が違う......それが問題なのです。設定が足りないのか、アルゴリズムが違うのか。
それとも、下の写真の 方がバーがたくさんあるからでしょうか?
インジケータが4からの変換でない場合、特に異なる数のバーで、なぜ絵が同じでなければならないのでしょうか?
計算式や設定を確認する。そして、インジケーターの作者に連絡を取ってみてください、インジケーターの議論において、もしかしたら、何か提案してくれるかもしれません。