fxDreema

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

    Adding lines of code into the .mq4 &/or .ex4 export files

    Questions & Answers
    2
    2
    849
    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.
    • S
      Smallous last edited by

      Hello,

      I need to add the following two lines of code into the exported files to allow Back Testing to interact with other products I use. Currently I add these lines manually via MT4 metaEditor, but it is a bit of a pain having to do this every time I update an EA. I know there is the Custom MQL4 fuction, but I am not sure if this can be done using that: Is this possible?

      1. Line 8 add #include <CustomChartingBacktest.mqh>
      2. Line 304 add if(skipFirstTickOnBacktest()) return;
      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Includes are possible, but via custom blocks.
        Here https://fxdreema.com/studio/ there is this field down below http://prntscr.com/89y8i1 where certain things can be added - includes, imports or global variables. But if you try to export .ex4/.ex5 it will probably return an error, because the include file does not exists on the server.

        The other thing can be made much easily, just put the block "Counter: Pass once" in "on Tick" and connect next blocks after it's second output.

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

        Online Users

        S
        G
        L
        K
        H

        17
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors