fxDreema

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

    Get EA to adjust itself based on price of its last trade?

    Questions & Answers
    2
    8
    789
    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.
    • M
      MNY127 last edited by

      delete.

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

        After the trade is closed on profit, you want to wait for the price to jump with X pips in 5 minutes and then trade again? Maybe measuring the size of M5 candle can help?

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

          delete

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

            Using candles is often the easiest way to do something. But if you want to measure the price for 5 minutes after the trade was closed, then something like this: https://fxdreema.com/shared/IkCEYOdve

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

              delete

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

                It depends. Here is one way to do that:
                https://fxdreema.com/shared/zoNMeOEcd

                Very similar thing, maybe better:
                https://fxdreema.com/shared/z5isE0tG

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

                  delete

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

                    1. It just shows where the level is. Nothing will happen if it is removed. But in other variant you can actually use such line to mark the level => you will compare the current price with it's level, not with a variable. But variables are faster, that's why I decided to use a variable.

                    2. Performance. While you don't have a trade. the pink block will not be executed in variant 2. It can be optimized even more (with more variables), because you don't need to recalculate this value on every tick, but it should work fine line this.

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

                    Online Users

                    A
                    I
                    E
                    C
                    H
                    S
                    N
                    M
                    R
                    F
                    S
                    T
                    M

                    20
                    Online

                    146.9k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors