1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "strategies": [
12 {
13 "strategyId": "XAUUSD_London_Breakout_EA",
14 "symbol": "XAUUSD",
15 "currentBrokerSpreadPips": 2.2,
16 "lotSize": 0.5,
17 "monthlyTrades": 110,
18 "parameterTrials": 18,
19 "hasHardStopLoss": true,
20 "maxLotMultiplier": 1,
21 "returns": [
22 0.014,
23 -0.006,
24 0.019,
25 0.011,
26 -0.005,
27 0.022,
28 0.009,
29 -0.004,
30 0.016,
31 0.013,
32 -0.007,
33 0.018,
34 0.012,
35 -0.003,
36 0.015,
37 0.01,
38 -0.005,
39 0.021,
40 0.008,
41 0.014,
42 -0.006,
43 0.017,
44 0.011,
45 0.013
46 ]
47 },
48 {
49 "strategyId": "EURUSD_Asian_Session_Scalper_EA",
50 "symbol": "EURUSD",
51 "currentBrokerSpreadPips": 1.6,
52 "lotSize": 1,
53 "monthlyTrades": 160,
54 "parameterTrials": 24,
55 "hasHardStopLoss": true,
56 "maxLotMultiplier": 1,
57 "returns": [
58 0.008,
59 0.006,
60 -0.004,
61 0.009,
62 0.007,
63 -0.003,
64 0.011,
65 0.005,
66 -0.004,
67 0.008,
68 0.006,
69 0.007,
70 -0.005,
71 0.009,
72 0.008,
73 -0.002,
74 0.007,
75 0.006,
76 0.008,
77 -0.004,
78 0.01,
79 0.005,
80 0.007,
81 0.006
82 ]
83 },
84 {
85 "strategyId": "USDJPY_Martingale_Grid_Suspect_EA",
86 "symbol": "USDJPY",
87 "currentBrokerSpreadPips": 1.8,
88 "lotSize": 0.3,
89 "monthlyTrades": 140,
90 "parameterTrials": 250,
91 "hasHardStopLoss": false,
92 "maxLotMultiplier": 2,
93 "returns": [
94 0.005,
95 0.005,
96 0.006,
97 0.004,
98 0.005,
99 -0.068,
100 0.006,
101 0.005,
102 0.005,
103 0.004,
104 -0.082,
105 0.006,
106 0.005,
107 0.005,
108 0.004,
109 0.006,
110 -0.075,
111 0.005,
112 0.005,
113 0.006,
114 0.004,
115 0.005,
116 0.005,
117 -0.091
118 ]
119 },
120 {
121 "strategyId": "NAS100_NY_Open_PropFirm_EA",
122 "symbol": "NAS100",
123 "currentBrokerSpreadPips": 2.4,
124 "lotSize": 0.4,
125 "monthlyTrades": 85,
126 "parameterTrials": 12,
127 "hasHardStopLoss": true,
128 "maxLotMultiplier": 1,
129 "returns": [
130 0.018,
131 -0.008,
132 0.024,
133 0.015,
134 -0.007,
135 0.021,
136 0.012,
137 -0.006,
138 0.019,
139 0.016,
140 -0.009,
141 0.022,
142 0.014,
143 -0.005,
144 0.017,
145 0.013,
146 -0.007,
147 0.023,
148 0.011,
149 0.018,
150 -0.006,
151 0.02,
152 0.014,
153 0.015
154 ]
155 },
156 {
157 "strategyId": "GBPUSD_London_MeanReversion_EA",
158 "symbol": "GBPUSD",
159 "currentBrokerSpreadPips": 1.9,
160 "lotSize": 0.6,
161 "monthlyTrades": 95,
162 "parameterTrials": 35,
163 "hasHardStopLoss": true,
164 "maxLotMultiplier": 1.15,
165 "returns": [
166 0.011,
167 -0.005,
168 0.013,
169 0.009,
170 -0.006,
171 0.015,
172 0.008,
173 -0.004,
174 0.012,
175 0.01,
176 -0.005,
177 0.014,
178 0.009,
179 -0.004,
180 0.011,
181 0.008,
182 -0.005,
183 0.013,
184 0.007,
185 0.011,
186 -0.005,
187 0.012,
188 0.009,
189 0.01
190 ]
191 }
192 ],
193 "monteCarloIterations": 2500,
194 "propFirmMaxTotalDrawdownPct": 10
195};
196
197
198const run = await client.actor("invaluable_rondeau/mql5-mt5-ea-fraud-propfirm-set-auditor").call(input);
199
200
201console.log('Results from dataset');
202console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
203const { items } = await client.dataset(run.defaultDatasetId).listItems();
204items.forEach((item) => {
205 console.dir(item);
206});
207
208