teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

インジケータコード全文の掲載+回答いただいた内容の結果表示+自分のスクリプト全文

2020/07/24 00:27

投稿

hiroshi77
hiroshi77

スコア12

title CHANGED
File without changes
body CHANGED
@@ -20,16 +20,51 @@
20
20
 
21
21
  ```
22
22
 
23
- 自分のコード
23
+ 自分のスクリプト全文
24
24
 
25
25
  ```mql4
26
-   
26
+ //+------------------------------------------------------------------+
27
+ //| custom_test.mq4 |
28
+ //| Copyright 2020, MetaQuotes Software Corp. |
29
+ //| https://www.mql5.com |
30
+ //+------------------------------------------------------------------+
31
+ #property copyright "Copyright 2020, MetaQuotes Software Corp."
32
+ #property link "https://www.mql5.com"
33
+ #property version "1.00"
34
+ #property strict
35
+ //+------------------------------------------------------------------+
36
+ //| Script program start function |
37
+ //+------------------------------------------------------------------+
38
+
39
+ input int RCI_period = 21;
40
+
41
+ input int singal_period = 5;
42
+
27
-   // 1番目のバッファー値の取得 → 成功
43
+ //input int mode = 0;
44
+
45
+ void OnStart()
46
+ {
28
- double curRCI_cus =iCustom(NULL,0,"fxnav_RCI",RCI_period,0,0);
47
+ double curRCI_cus =iCustom(NULL,0,"Bands",RCI_period,0,0);
29
48
 
49
+ double curSIG_cus =iCustom(NULL,0,"Bands",singal_period,1,0);
50
+
51
+ Alert("RCI_custom: ",curRCI_cus);
52
+ Alert("preRCI_custom: ",preRCI_cus);
53
+ Alert("curSIG_cus: ",curSIG_cus);
54
+ Alert("preSIG_cus: ",preSIG_cus);
55
+
56
+ }
57
+ ```
30
58
 
31
-   // 後ろから2番目の引数を1に変更
32
- // 2番目のバッファ取得 → 失敗
59
+ インジケコード全文
33
- double curSIG_cus =iCustom(NULL,0,"fxnav_RCI",singal_period,1,0);
34
60
 
61
+ [https://drive.google.com/file/d/1UnOwQ5KpsKRpHlXySI9BbcsE8FOmEf-4/view?usp=sharing](https://drive.google.com/file/d/1UnOwQ5KpsKRpHlXySI9BbcsE8FOmEf-4/view?usp=sharing)
62
+
63
+
64
+
65
+
66
+
67
+
35
- ```
68
+ 回答欄にて頂いたコードの結果と比較
69
+
70
+ ![イメージ説明](d1c94909b60e296246771dbffa5f5a69.png)