fxDreema

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

    Check Profit(period of time) help

    Questions & Answers
    2
    5
    190
    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.
    • P
      Pipologist last edited by

      I'm trying to make an EA that has two trading periods per day, that it takes trades until "X" amount of profit is made in THAT time period.

      I am using the block "Check Profit (period of time)"

      As I understand it, it should draw a green line for the entire first session and a red line for the entire second session, as the "Test" EA does not take any trades, so the profit is under the set <lower than profit target. and no line that is outside of both of the two session time frames.

      When I run it in the mt4 Strategy Tester it draws a red line for a whole day of only one day of the month long test.

      I'm confused, and I'm sure doing something wrong. can anyone point me in the right direction. Thx

      https://fxdreema.com/shared/Sgo2KejLd

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

        You need many more blocks to draw lines when you want, this just checks profit. then if enough will draw a random line. To draw a line on the times inside a draw block put the time of when you want it drawn

        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
        • P
          Pipologist last edited by

          Hey jstap, thanks for the reply.
          I'm not sure if I understand what your saying. This EA is to test the functionally of the "Check Profit (period of time)" block.
          The draw block time is set to now. "Once per Candle" (Time candle 0) if "Check Profit" block time and conditions are met, it should draw once per candle in the selected time period of the Check Profit block.

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

            As is as soon as reaching the profit if with in the range it will draw a line, I assume this is not what you want it to do?

            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
            • P
              Pipologist last edited by

              My goal is to have from 07:30 to 19:00 the block to pass if $2000 has not been made in that time period. and to not pass if $2000 profit has been made.

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

              Online Users

              T
              N
              M
              K
              F
              Z
              S

              13
              Online

              146.7k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors