
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
OK, VassaV, got it !
Here is another question. In the usual code, when a position is opened, it is shown:
Here we have "ticket" value. In my EA, the scheme is somewhat different, like this:
But I also need the "ticket" value! For this pair. I can't do it all morning! Who knows, - Please, tell me how?
To all those who wanted advice but didn't have time to respond, thank you!
I think I've worked it out myself (this afternoon). It goes like this:
The condition of testing the Expert Advisor for 5 minutes at the Championship, and only 3 weeks before the end of the term, was almost a BEGINNING for everyone !
Individually, my Expert Advisor is tested on the history of 12 months on one pair, - no more than 3-4 minutes. It works on all ticks.
But when I unite several EAs into one - multicurrency EA, testing time increases up to 7-10 minutes !
And I disable all pairs except one which I run.
I want to ask professionals (and not only) to share their experience and ways to decrease testing time.
Expert Advisor structure is as follows:
The condition of testing the Expert Advisor for 5 minutes in the Championship in just 3 weeks before the end of the period has almost been a BEGINNING for everyone!
Individually my Expert Advisor is tested on the history of 12 months on one pair - no more than 3-4 minutes. It works on all ticks.
But when I unite several EAs into one - multicurrency EA, testing time increases up to 7-10 minutes!
And I disable all pairs except one - which I am testing.
I want to ask specialists (and not only) to share their approaches and ways to decrease testing time.
Expert Advisor structure is like this:
it is tested slowly, mainly due to the indicators
they are not visible in this structure, but you most likely have them, otherwise they would take a minute maximum for testing.
The indicators have to be changed or moved to the code in the EA.
Loky,
Did I understand you correctly?
My indicators are where I set the variables. And apparently they
should probably be moved inside in
for each pair accordingly?
It allows you to test on any of 12 currency pairs, and on several timeframes.
15:18:05 2006.10.17 09:38 NRTR_GATOR EURUSD,M15: loaded successfully
15:18:09 2006.10.17 09:38 NRTR_GATOR EURUSD,M30: loaded successfully
15:18:09 2006.10.17 09:38 NRTR_GATOR EURUSD,H1: loaded successfully
15:18:09 2006.10.17 09:38 NRTR_GATOR EURUSD,H4: loaded successfully
15:18:09 2006.10.17 09:38 NRTR_GATOR EURUSD,Daily: loaded successfully
15:18:09 2007.01.02 00:00 NRTR_GATOR EURUSD,M30: Attention, trend is not defined. Bar from the end of 4
15:18:09 2007.01.02 00 00:00 NRTR_GATOR EURUSD,M30: Warning! Trend is not defined, it cannot be
15:18:09 2007.01.02 00:00 NRTR_GATOR EURUSD,H1: Warning! Trend is not defined, it cannot be. Bar from the end of 1
15:18:09 2007.01.02 00:00 NRTR_GATOR EURUSD,H1: Warning! Trend is not defined, it cannot be
......................................
15:18:23 2007.08.17 22:17 Tester: stop loss #242 at 1.3483 (1.3483 / 1.3485)
15:18:23 2007.08.17 22:59 NRTR_GATOR EURUSD,Daily: removed
15:18:23 2007.08.17 22:59 NRTR_GATOR EURUSD,H4: removed
15:18:23 2007.08.17 22:59 NRTR_GATOR EURUSD,H1: removed
15:18:23 2007.08.17 22:59 NRTR_GATOR EURUSD,M30: removed
15:18:23 2007.08.17 22:59 ProtoType-IX EURUSD,M15: Testing completed
It took 18 seconds to test on 15 minutes in the "Every ticks" model.
Thank you to those who responded to the question. Things are clearing up gradually. Tucked the turkeys inside. And now the limit is met.
Rosh, - tried a dozen times already to approach the expert named by you. But... every time I've backed off... With my modest knowledge I still cannot grasp the code and its structure. I am confused and am not quite sure where to start and how to structure its research. There are many uncertainties, and I cannot get to everything at once. I begin to understand everything and soon I stop to think - where I started and what for ...
And taking this opportunity, I have a question about the article "Example of creating an Expert Advisor" ^
the principle of multicurrency Expert Advisor is approximately as follows:
1. in the calculation of indicators to specify specific currencies and time intervals, for example: iRSI("GBPUSD",60,GBPUSD_period,3,3,MODE_SMA,0,MODE_MAIN,i); //but here is an error
2. obtain prices, points, etc. using MarketInfo.
3. use iLow(...) instead of Low[0] for example
and apply to all currency pairs.
Good luck.
If charts are not open, or they are opened with different timeframes than used, you have to constantly perform
Checks on every sneeze - even iRSI may not work ... until the terminal swap ...
Respectfully - S.D.
In online, I set in the Expert Advisor (in the indices) timef=1 min (to check the performance) on all pairs.
And I put it on the chart of the first pair on the timef=1 min. But on other pairs of the EA the timeframe is often different. And nevertheless the EA operates on all pairs exactly in terms of timef-minutes, as it is implemented in the code!
Or maybe I didn't understand you correctly?
The principle of the multi-currency Expert Advisor is as follows:
1. specify specific currencies and time intervals in the calculation of indicators, for example: iRSI("GBPUSD",60,GBPUSD_period,3,3,MODE_SMA,0,MODE_MAIN,i); //but here is an error
2. obtain prices, points, etc. using MarketInfo.
3. use iLow(...) instead of Low[0] for example
and write it on all currency pairs.
Good luck.
Could you please tell me if the substitution of the construction will be correct:
in multicurrency Expert Advisor code when working on someone else's instrument on such one:
If not, please advise what is the error and how to do it correctly?
Thank you in advance.