fxDreema

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

    Entering trades based on object on charts (lines drawn by indicator)?

    Questions & Answers
    3
    7
    1807
    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.
    • L
      Lagoon last edited by Lagoon

      Hello,

      I'm trying to build an EA which enters a trade when it is above the "DLB#1-0-hi" line which is drawn daily (after 6:00h my server time).
      The trades should closed by an opposite BB Stop signal.

      Unfortunately I cannot manage to build it properly it doesn't enter any trade.

      It's also imortant to note that it only should trade after 6:00h until 21:00) cause the levels/range box is drawn daily until 6.00h you can see it here.

      -So how do I make the EA indentifying the levels correctly?
      -And how does the time filter work properly cause, for instance, I don't the exiting (via the BB Stop signal) to stop after 21.00h?

      Attached are all the files
      0_1525607657000_Example.png
      0_1525607875174_Example2.png
      0_1525607919606_BBand Stop Alert.ex4 0_1525607934770_DailyLinesBoxes.mq4 0_1525608152338_DBoxes test 1.mq4

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

        I think this will work about right:
        0_1525619319541_f43a1297-7dc9-436a-933d-c1ab96707487-image.png
        Notice the different "route" for exit - if your exit condition was after the buy, the trades would close instantly after opening (or not at all).
        https://fxdreema.com/shared/WolKfEaEc

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        L 2 Replies Last reply Reply Quote 0
        • L
          Lagoon @roar last edited by Lagoon

          @roar

          Unfortunately thats not what I meant, the lines are drawn by an indicator, when I test your build the indicators doesn't appear.

          I've did a new try but still not working, the indicator for exiting isn't even loaden into the EA (I don't know why).

          And still no trades.

          What have I done wrong?

          https://fxdreema.com/shared/ReJISR5C

          1 Reply Last reply Reply Quote 0
          • L
            Lagoon last edited by

            Can nobody help me with this?

            1 Reply Last reply Reply Quote 0
            • M
              miro1360 last edited by miro1360

              maybe this can help you ..
              https://fxdreema.com/forum/topic/4209/tutorial-07-read-prices-from-indicator-objects

              Between trading and gambling is a very small gap, be careful.

              L 1 Reply Last reply Reply Quote 0
              • L
                Lagoon @roar last edited by

                @roar

                Honestly you were quite right, I just had to emove the Condition object is not 0 and had to load the indicator onto the visual backtesting chart.

                I'm sorry it was my fault.

                Best regards“and thanks for your help.

                1 Reply Last reply Reply Quote 1
                • L
                  Lagoon @miro1360 last edited by

                  @miro1360

                  I have figured it out now, I just didn't know that you can put the indicator simply onto the backtesting chart without putting it into the EA itself.

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

                  Online Users

                  M
                  D
                  A
                  S
                  D
                  R
                  S
                  A
                  E
                  S
                  S

                  16
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors