int iTfTable[] = {1,5,15,30,60,240,1440,10080,43200};
string timeFrameToString(int tf)
{
for (int i=ArraySize(iTfTable)-1; i>=0; i--)
if (tf==iTfTable) return(sTfTable);
return("");
}[/CODE]
You decide which is shorter and easier, and even though it is up to anybodies preference what kind of coding will one use, I'll stick to my mode because it is much easier to add "custom" time frames to it (offline charts for example) and is simpler (and I am a sucker for simplicity when it comes to coding)
Wish you (and all the members) a happy new year in advance
お願い
mladenさん、MTFへの変換をお願いします。よろしくお願いします。
fxcollection
デコンパイルされたコードです。そのコードの「通常」バージョンはありますか?
こんにちはmladenは、それらをMTFに変換するために助けてください。よろしくお願いします。
返信
fxcollection デコンパイルされたコードです。そのコードの "通常版 "をお持ちですか?
こんにちは、返信が遅くなり申し訳ありません。私は、どこかでダウンロードしたex4版しか持っていません。そこで、自分で逆コンパイルしてみましたので、お役に立てればと思います。そのため、通常版はまだ必要なのでしょうか?
fxcollection
一般的にコーダーはデコンパイルされたコードで仕事をしたがらないので、デコンパイルされたコードで必要なものを作ってくれる人はいないかもしれませんね。
こんにちは、返信が遅くなり申し訳ありません。私は、どこかでダウンロードしたex4版しか持っていません。そこで、自分で逆コンパイルしてみたのですが、これが役に立つかもしれません。それで、通常版はまだ必要なのでしょうか?
OK 回答ありがとうございました。
...
fxcollection
私が見た限りでは、このスレッドで試してみてください :https://www.mql5.com/en/forum/general(有名なheiken ashi smoothhed indicatorのようなので) そのスレッドにはすでにマルチタイムフレームバージョンもあります。
OK 回答ありがとうございました、mqlバージョンを探してみます。
こんにちは
こんにちは、MTFを作成し、レベル20〜80を超えたらアラートを出すようにしてください。
thx
お待たせしました
こんにちは、MTFを作成し、レベル20から80を超えたときに警告してください。
はい、どうぞ
not easier here's so
case 1 : TimeFrameStr="Period_M1"; break;
case 5 : TimeFrameStr="Period_M5"; break;
case 15 : TimeFrameStr="Period_M15"; break;
case 30 : TimeFrameStr="Period_M30"; break;
case 60 : TimeFrameStr="Period_H1"; break;
case 240 : TimeFrameStr="Period_H4"; break;
case 1440 : TimeFrameStr="Period_D1"; break;
case 10080 : TimeFrameStr="Period_W1"; break;
case 43200 : TimeFrameStr="Period_MN1"; break;
default : TimeFrameStr="Current Timeframe"; TimeFrame =0; }ここから先は簡単?
int iTfTable[] = {1,5,15,30,60,240,1440,10080,43200};
string timeFrameToString(int tf)
{
for (int i=ArraySize(iTfTable)-1; i>=0; i--)
if (tf==iTfTable) return(sTfTable);
return("");
}[/CODE]
You decide which is shorter and easier, and even though it is up to anybodies preference what kind of coding will one use, I'll stick to my mode because it is much easier to add "custom" time frames to it (offline charts for example) and is simpler (and I am a sucker for simplicity when it comes to coding)
Wish you (and all the members) a happy new year in advance
not easier here's so
[CODE]switch(TimeFrame) {
case 1 : TimeFrameStr="Period_M1"; break;
case 5 : TimeFrameStr="Period_M5"; break;
case 15 : TimeFrameStr="Period_M15"; break;
case 30 : TimeFrameStr="Period_M30"; break;
case 60 : TimeFrameStr="Period_H1"; break;
case 240 : TimeFrameStr="Period_H4"; break;
case 1440 : TimeFrameStr="Period_D1"; break;
case 10080 : TimeFrameStr="Period_W1"; break;
case 43200 : TimeFrameStr="Period_MN1"; break;
default : TimeFrameStr="Current Timeframe"; TimeFrame =0; }