Speed up indior and EA calculations
Results 1 to 5 of 5

Thread: Speed up indior and EA calculations

  1. #1
    Hello everybody, I realised lately that nothing in my VPS was running as intended for a very simple reason: I've too many cases of MT4 working on these gt; therefore, as most of my eas are based on renko charts the VPS cannot manage the amount of calculation I toss him at every price movement.

    I have also discovered that MT4 warns me using the message xxx indior is too slow(i.e 5000ms) please rewrite the indior

    I have looked around for solutions and bumped into the following options:

    - Modifying the 3 indiors I use per EA to compute only on WindowBarPerChart()
    - Inform my Renko Block builder to only build on the previous x tick datas

    Given that my indiors cannot compute on Close only but will need to recalculate on every tick, what do you advise?

    Due

  2. #2
    Hi MoneyZilla!

    Thanks for you reply I really appreciate.
    That is basically what I had been on the brink of doing, however as I'm largely in a forward testing stage that the cost efficiency of the entire rig would basically be negative.
    How high are your expenses server related all together if not overly personnal?
    (PS: I can remember saying he had been spending 50k per month on his server bay and upkeep haha)

  3. #3
    You will need to look very carefully in your indiors and streamline as much as possible. There'll be code which may be optimized and removed, so check carefully as most code develops with error fixes and work arounds.

    Another very simple solution might be to skip every second tick and thus lessen the load on the CPU. You might find that rather than using ticks, use the OnTimer function instead and so call your calcs every couple of seconds rather than every tick.

  4. #4
    Quote Originally Posted by ;
    Hi ! Just how high are your expenditures server related all together if not overly personnal?
    I run a web hosting business with my brother. We've got loads of servers we have to replace and they need to be scrapped. I take the ones that are scrapped! And they're FLYING! No VPS, cash can buy, is coming closer to their performance. Two VPSes are kept by me. One with eUKhost (Number 65/month) and one with SWVPS (Number 50/month). Merely to compare the industrial VPSes to my waste dedied servers. The VPSes are SLOW. VERY VERY SLOW. Complete crap, I would say. Worthless.

    I do know why just the industrial VPSes are so badly performing. Since the hosting companies simply oversell them. Too many clients on the physical system...

  5. #5
    For exactly the very same reasons I'm using 5 dedied servers 1 VPS. The dedied servers are with 12, 16 and 24 CPU cores. All with 32 or 48 GB of RAM. I really do put an affinity for every terminal. One CPU core per terminal. In addition, I do place the affinity for the rest of the progr to just one CPU core and the servers are... flying. Sort of.

    Here are two links that might work for you:

    http://4xtrader.net/simple-tips-to-r...t4-memory-use/

    https://www.mt4copier.com/improve-mt...-copier-speed/

    in addition, the developer I'm working with, mentioned something about arrays. My EAs are now with enhanced performance, many, most, most, many, many times faster than what they were performing before. Because of those arrays from the memory.

    I'm just a plain stupid and I don't have a clue what the arrays are, but if you know arrays, you may want to research it deeper.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners more information