fxDreema

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

    Trades open then close right away

    Questions & Answers
    3
    4
    991
    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.
    • J
      JayGnostic last edited by

      Hello. My problem is that my trades open and then close right away. The buy trade opens when rsi is bellow 30. As a stop loss i want the trade to close if rsi gets above 30 and then crosses bellow 30 again at a later time but dont know how to keep it from opening then closing on the next tick. Any help is appreciated.

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

        maybe something from pink blocks can help you, you can check age of opened trade ... (for each trade - check age - conditions ....)

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

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

          There is common mistake that people do when using "Close trades", which is always hard for me to explain.

          Remember that you are placing blocks under "on Tick", which means that they run probably multiple times per second. The layout of blocks normally looks like this - conditions and filters on the top and actions below them. I mean, first you check the environment (indicators, time, trades count and so on) and then you do some action (opening orders, closing orders).

          But sometimes people make 2 separate chains of blocks, where at the end of the first one they have "Buy now" and at the end of the second one they have "Close trades". It just happens that for the Condition blocks they are choosing the same rules, so as a result the conditions to reach "Buy now" and the conditions to reach "Close trades" are true at the same time.

          So, make sure that the conditions above "Buy now" and the conditions above "Close trades" cannot be true at the same time. And by "conditions" I mean all blocks above "Buy now" and "Close trades", including blocks such as "No trade".

          Here is some interesting example that I always show: https://fxdreema.com/demo/mt4-buy-sell-buy-sell-opposite-conditions
          Note that I practically use the same "Condition" blocks and "Close trades" stay on top of the Buy and Sell blocks, but because of the settings in blocks 1 and 5 everything works fine.

          J 1 Reply Last reply Reply Quote 0
          • J
            JayGnostic @fxDreema last edited by

            Thank you both for the suggestions.

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

            Online Users

            F
            C
            C
            P

            9
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors