fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    If l delete import dll mq4 code. It will have problem?

    Questions & Answers
    2
    3
    944
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • forex-research
      forex-research last edited by

      My EA have create by fxdreema it make import dll code inside.

      Can l delete ? , lt will have problem (l never use delay block).

      Regards

      Forex market never sleep

      1 Reply Last reply Reply Quote 0
      • forex-research
        forex-research last edited by

        0_1488720454717_non delay.png

        Never have delay block.

        Forex market never sleep

        1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by

          Delay block is the only one that requests DLL usage. This is the actual code:

          #import "kernel32.dll"
          bool SleepEx(int ms, bool bAlertable);
          #import
          

          So, MQL4 have native Sleep() function, which works in live, but has no effect when backtesting. But I wanted to have the ability to pause for a while when using the "Visual mode". This imported function SleepEx() allows me to pause the EA in Visual mode, and I really use this option on a regular basis. Most times I would just connect the "Delay" block after "Buy now" or "Sell now", so then the EA would wait for a while after the creation of each trade, which is very helpful when I want to analyse something.

          This DLL usage is obviously harmless. And by default SleepEx() is not even used, because you need to select in the Delay block that you want to use Realtime delay for Visual mode. But the DLL is requested anyway.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          Online Users

          T
          E
          N
          E
          B
          F
          A
          R
          E
          H
          E
          M

          17
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors