if(TimeHour(Time[1]) == 7)
{
Print(TimeHour(Time[1]), " Time [1] what is this time");
}
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.18 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time 2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
話題が混ざっているかもしれませんが、私のタイトル/質問をこのように言い換えさせてください。
例えば、午前7時のローソクの高値[]、安値[]、終値[]、開値[]を求める場合、MT4のチャートにはデフォルトで終値と開値が 表示されていますので、それを使ってみましょう。
Print(high[], " 7:00amのローソク足の高値);
Print(low[], " 7:00amのローソク足の安値);
というわけで、特定の時間の特定のローソクの高値と安値を見つけたいのです。
これを見つけたら、その開始点と開始ローソク足に基づいて取引のための時間範囲を設定したいのです。
とにかく私はあなたが投稿した情報とそこから管理でこれを動作させることができると思うが、私は私の質問を誤って記述している可能性があります参考まで。
私はそれが完了したら、誰もがそれを見るために戻ってコードを投稿します、多分その後、それを使用することができます。
ありがとうございました。
Time[x]はdatetimeを 返すのでダメです ... ... でもできます ...
TimeHourを 読み込む
どうやって18を知るのでしょうか?
私はTimeHourをなんとなく理解していますが、Time[1]はdatetimeなので、なぜ何らかの方法で変換する必要がないのでしょうか?
私はTimeHourが私のためにこれを行うことを仮定して、私はそれが何をやっているのか見ることができるようにprint文を設定します。
今更ながら、単純な質問で申し訳ありませんが、私はまだいくつかの関数を理解するのに苦労しています。
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:10 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.18 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:44 2011.11.11 08:11 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:43 2011.10.28 08:08 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
2011.12.15 19:14:42 2011.10.14 08:09 Time_sampling EURUSD,M15: 7 Time [1] what is this time
そこで、特定の時間における特定のローソクの高値と安値を見つけたいのです。
iBarShiftを 使用する "Search for bar by open time. "そしてそれは... "returns bar shift with open time specified. "あなたはそれを与える必要があります日付の時間... ...。
............................................では、どのようにあなたが望む時間帯の日時を計算しますか? さて、今朝の午前7時を指定するとします ... ... (私は今9時30分です) TimeCurrent() (これはサーバー時間なので、ローカル時間と比べて時間のずれがあるかもしれません、これを考慮する必要があります) それからそれを日で割って (PERIOD_D1 * 60) MathFloor値をとると、これは真夜中の日付時間になります ... 7時間 (7 * 60 * 60) を加えれば、7時という日付時間が得られます。
どうやって18を知るのですか?
TimeHourはなんとなくわかるけど、Time[1]はdatetimeだから、どうにかして変換する必要があるのでは?
なぜドキュメントに 問題があるのかよくわからないのですが・・・説明していただけますか? 私にとっては、この場合、それは非常に明確です ... はい、私はいくつかの関数については、ドキュメントが望まれるべき多くを残すことができることに同意します ... ... しかし ...
指定された時刻の時間を返します。
int= この関数が返す変数の型
datetime time= 関数を呼び出すときに渡す必要のある型
指定された時刻の時間を返します。
私のprint文は7時に印刷する必要がありますか?
はい、そうです......あなたはH1チャート上にいますか? ですから、Time[1]は最後の完全なローソクの時間を返します......現在の時刻が 8時11分なら、現在の H1ローソクは8時ですから、前の時間は7時です...違いますか?
はい、そうです......あなたはH1チャート上にいますか? だからTime[1]は最後の完全なろうそくの時間を返す......現在の時刻が08時11分なら、現在の H1ろうそくは8時なので前は7時です......いいえ?
OK私ももう一度iBarShiftを見直します。
ありがとうございました。
こんにちは、私はまた、その日の最初のバーのデータを取得するための手がかりを探しています。
私が作ったこのコードは、確かに動作しません。
double nyitohigh; // 最初のバーの高値
ダブルnyitolow; // 最初のバーの低い値
datetime ejfel = D'TimeYear().TimeMonth().TimeDay() 00:00'; //私たちは真夜中を取得します。
int shift=iBarShift(NULL,PERIOD_M15,ejfel,true); //現在からのシフトを取得する。
nyitohigh=iHigh(NULL,PERIOD_M15,shift); //高値を取得する。
nyitolow=iLow(NULL,PERIOD_M15,shift);//安値取得
Comment("Nyito teteje ",nyitohigh," Nyito alja ",nyitolow);で確認 しましたが、コメントには0と0が書き込まれています。
何か良いヒントがあるでしょうか?
笑) OK 15分足チャートでやっているので、今こうしてプリントアウトしている理由がわかりました OK iBarShiftももう一度見直してみます ありがとうございます .
何か良いヒントはないでしょうか?
こんなの無理だよ ... ...
......datetimeに関する ドキュメントを読んでください。 特に の最後の文章を読んでください。
こんにちは。
解決済みです。
ダブル・ニイ・トウ・ハイ
double nyitolow;
datetime ejfel = StrToTime("00:00")。
int shift=iBarShift(NULL,PERIOD_M15,ejfel,true);
nyitohigh=iHigh(NULL,PERIOD_M15,shift)とする。
nyitolow=iLow(NULL,PERIOD_M15,shift)です。
こんにちは、私はまた、その日の最初のバーのデータを取得するための手がかりを探しています。
私が作ったこのコードは、確かに動作しません。
double nyitohigh; // 最初のバーの高値
ダブルnyitolow; // 最初のバーの低い値
datetime ejfel = D'TimeYear().TimeMonth().TimeDay() 00:00'; //私たちは真夜中を取得します。
int shift=iBarShift(NULL,PERIOD_M15,ejfel,true); //現在からのシフトを取得する。
nyitohigh=iHigh(NULL,PERIOD_M15,shift); //高値を取得する。
nyitolow=iLow(NULL,PERIOD_M15,shift);//安値取得
Comment("Nyito teteje ",nyitohigh," Nyito alja ",nyitolow);で確認しましたが、コメントには0と0が書き込まれています。
何か良いヒントはないでしょうか?