質問編集履歴
1
試したことを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,4 +22,25 @@
|
|
22
22
|
Alert("最高値 ",High_Price);
|
23
23
|
|
24
24
|
|
25
|
+
```
|
26
|
+
|
27
|
+
### 試したこと
|
28
|
+
|
29
|
+
1440分が1日なので、1440×5÷30 本分のバーを参照してみましたが、正しい値を取得できませんでした。
|
30
|
+
|
31
|
+
```mql4
|
32
|
+
|
33
|
+
// 過去5日間の最高値
|
34
|
+
//int Index = iHighest(NULL,PERIOD_D1,MODE_HIGH,5,1);
|
35
|
+
|
36
|
+
int keisan = 5*1440/30;
|
37
|
+
|
38
|
+
int Index = iHighest(NULL,PERIOD_D1,MODE_HIGH, keisan,1);
|
39
|
+
|
40
|
+
double High_Price = High[Index];
|
41
|
+
|
42
|
+
Alert("最高値 ",High_Price);
|
43
|
+
|
44
|
+
|
45
|
+
|
25
46
|
```
|