fxDreema

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

    Compilation Errors when exporting to ex4 file

    Questions & Answers
    2
    3
    101
    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.
    • R
      robinsmithesq last edited by

      Hello
      I'm trying to create a simple EA to assist with a semi automated trading strategy.

      For the EA, I set buys or sells only in MT4.
      If its I set MT4 to buys only when the lower price band is crossed a buy is placed
      If MT4 is set for sells only then when the upper price band is crossed a sell is placed.

      I will manually set input the upper and lower price bands manually as constants.

      There are also constants for TP, SL, Trailing step and Trailing stop which I have used in the various blocks. When I try to export it to an EX4 file I get the below compiling errors

      Please could someone help me workout what is causing the errors?

      When I try tSemi Manual EA.PNG

      link to project

      Thanks!

      1 Reply Last reply Reply Quote 0
      • R
        robinsmithesq last edited by

        I fixed this, I just needed to take out the trailing stop and trailing step as constants and then the EX4 generated.

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

          You can use this, itn is int, struct member undefined means you have a misspelt constant, pips should be a double, and c semicolon expected means you had something written in a box that shouldn't be there.

          Learn fxDreema Without the Wait!

          My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

          The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

          Don’t miss out

          Click here➡️ https://mybook.to/fxDreema to get your copy today!

          Enjoy! 😊

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

          Online Users

          A
          C
          J
          H
          S
          T
          K
          S
          M
          T
          C
          G

          22
          Online

          146.9k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors