質問編集履歴
1
インジケータコード全文の掲載+回答いただいた内容の結果表示+自分のスクリプト全文
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,28 +42,98 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
自分の
|
45
|
+
自分のスクリプト全文
|
46
46
|
|
47
47
|
|
48
48
|
|
49
49
|
```mql4
|
50
50
|
|
51
|
-
|
51
|
+
//+------------------------------------------------------------------+
|
52
52
|
|
53
|
-
|
53
|
+
//| custom_test.mq4 |
|
54
54
|
|
55
|
+
//| Copyright 2020, MetaQuotes Software Corp. |
|
56
|
+
|
57
|
+
//| https://www.mql5.com |
|
58
|
+
|
59
|
+
//+------------------------------------------------------------------+
|
60
|
+
|
61
|
+
#property copyright "Copyright 2020, MetaQuotes Software Corp."
|
62
|
+
|
63
|
+
#property link "https://www.mql5.com"
|
64
|
+
|
65
|
+
#property version "1.00"
|
66
|
+
|
67
|
+
#property strict
|
68
|
+
|
69
|
+
//+------------------------------------------------------------------+
|
70
|
+
|
71
|
+
//| Script program start function |
|
72
|
+
|
73
|
+
//+------------------------------------------------------------------+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
input int RCI_period = 21;
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
input int singal_period = 5;
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
//input int mode = 0;
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
void OnStart()
|
90
|
+
|
91
|
+
{
|
92
|
+
|
55
|
-
double curRCI_cus =iCustom(NULL,0,"
|
93
|
+
double curRCI_cus =iCustom(NULL,0,"Bands",RCI_period,0,0);
|
56
94
|
|
57
95
|
|
58
96
|
|
97
|
+
double curSIG_cus =iCustom(NULL,0,"Bands",singal_period,1,0);
|
59
98
|
|
99
|
+
|
60
100
|
|
61
|
-
|
101
|
+
Alert("RCI_custom: ",curRCI_cus);
|
62
102
|
|
63
|
-
|
103
|
+
Alert("preRCI_custom: ",preRCI_cus);
|
64
104
|
|
65
|
-
|
105
|
+
Alert("curSIG_cus: ",curSIG_cus);
|
106
|
+
|
107
|
+
Alert("preSIG_cus: ",preSIG_cus);
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
```
|
66
114
|
|
67
115
|
|
68
116
|
|
69
|
-
|
117
|
+
インジケータのコード全文
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
[https://drive.google.com/file/d/1UnOwQ5KpsKRpHlXySI9BbcsE8FOmEf-4/view?usp=sharing](https://drive.google.com/file/d/1UnOwQ5KpsKRpHlXySI9BbcsE8FOmEf-4/view?usp=sharing)
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
回答欄にて頂いたコードの結果と比較
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
![イメージ説明](d1c94909b60e296246771dbffa5f5a69.png)
|