-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScreenshotRunner.mq4
72 lines (62 loc) · 1.15 KB
/
ScreenshotRunner.mq4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//+------------------------------------------------------------------+
//| ScreenshotRunner.mq4 |
//| Copyright © 2012, MetaQuotes Software Corp. |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2012, MetaQuotes Software Corp."
#property link "http://www.mql5.com"
#property version "1.00"
#property strict
string pairs[] = {
"EURUSD",
"GBPUSD",
"USDCHF",
"USDJPY",
"USDCAD",
"AUDUSD",
"EURGBP",
"NZDUSD",
"EURJPY",
"GBPCHF",
"GBPJPY",
"AUDCAD",
"EURCAD",
"EURAUD",
"CHFJPY",
"GBPAUD",
"GBPCAD",
"CADJPY",
"AUDJPY",
"EURNZD",
"GBPNZD",
"NZDCAD",
"NZDCHF",
"NZDJPY",
"AUDNZD",
"AUDCHF",
"CADCHF"
};
int init()
{
return(0);
}
int deinit()
{
return(0);
}
int start()
{
everyTick();
if (Volume[0] == 1) everyBar();
return(0);
}
void everyTick()
{
}
void everyBar()
{
for (int i=0; i<ArraySize(pairs); i++) {
ChartSetSymbolPeriod(0, pairs[i], Period());
}
ChartSetSymbolPeriod(0, "EURUSD", Period());
}