Multi Chart [Metatrader 5]
-
hi, I noticed that if you attach the same EA on multiple markets Metatrader 5 slows down the execution processes of the same!
I didn't find any information about it here or on the manufacturer's website, some of you have had the same problem!
I don't know if it can affect but I was thinking of renaming the EA for each chart but I don't think things will change as the system already divides them on the account menu, if someone can help me understand if it depends on the MT5 platform or on the wrong design of mine EA, Thanks -
@duepips That is normal. You are requesting the MT5 to work more as many charts are executing all the calculations required by each EA. AFAIK it is inevitable.
-
@l-andorrà said in Multi Chart [Metatrader 5]:
That is normal. You are requesting the MT5 to work more as many charts are executing all the calculations required by each EA. AFAIK it is inevitable.
what solution would it be? Install more terminals and upload 5 max 10 charts for each one?
-
@duepips The best one should be combining as many different EAs on one same EA, but I guess that is not necessarily possible, so yes, your solution should work.
-
@l-andorrà said in Multi Chart [Metatrader 5]:
The best one should be combining as many different EAs on one same EA, but I guess that is not necessarily possible, so yes, your solution should work.
ok, it has a lot to do with hardware performance, I improved performance by installing a VPS with virtualbox, the CPU works much better, I think that to manage the calculations simultaneously on many graphics with EA you need a high performance pc
-
@duepips Good for you!

-
poorly designed blocks (bad code) will also result in slow lethargic EA's. For the most part, EA's can be done in such a way they are not a huge burden on computer resources. Even doing a few calculations.
The things that utilize the most resources are pending trades, being in trades, and retaining objects. Each object is cached and remember, its wise to delete drawings that are considered invalidated. If you are clever enough, you can do a time based deletion of things that anything of X age, is removed...

-
@tipsywisdom said in Multi Chart [Metatrader 5]:
poorly designed blocks (bad code) will also result in slow lethargic EA's. For the most part, EA's can be done in such a way they are not a huge burden on computer resources. Even doing a few calculations.
The things that utilize the most resources are pending trades, being in trades, and retaining objects. Each object is cached and remember, its wise to delete drawings that are considered invalidated. If you are clever enough, you can do a time based deletion of things that anything of X age, is removed...
I have recently begun to understand how MT5 runs the code and what is needed according to the various events, so I am optimizing my EA using on Init, Timer, Ticks, Trade, Chart and Deinit, I will make it fly with very few resources hardware, thanks
-
@duepips very awesome!
I hpersonally recommend not doing anything faster than a 1m TF for the most you can do to your EA as far as candle control, and backtest speed. -
@tipsywisdom said in Multi Chart [Metatrader 5]:
very awesome!
I hpersonally recommend not doing anything faster than a 1m TF for the most you can do to your EA as far as candle control, and backtest speed.yes, I made all the changes by moving the blocks on Init Timer Ticks Trade Chart and Deinit I carried out the test strategy now it is very fast as onTicks there are only the signals loaded and some data that needs to be updated, I am really satisfied, the pc that I use with virtualbox VPS now it has cooled down and the fans are no longer heard, the CPU used by MT5 has gone from 80/90% and 5/10%;)