fxDreema

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

    Fliter Trade Signals

    Questions & Answers
    2
    6
    1034
    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.
    • U
      uchiha last edited by

      In the attached picture, I want to filter the trade such that only sell 1 and sell 5 are executed. Any idea is welcome

      ......
      hhh.png

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

        What is specific in Sell 1 and Sell 5? It looks that the conditions for Sell 5 are quite different.

        1 Reply Last reply Reply Quote 0
        • U
          uchiha last edited by

          Okay, conditions for sell are;
          -blue line is lower than green line
          -price is below dashes line
          Sell 1 will be executed because it is the first trade of the day
          Sell 5 will be executed because there was a buy signal indicated by the blue arrow (even though the buy wasn’t executed)

          hope its clear.

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

            For the first trade I will suggest to do it with "Once a day" connected after the main conditions. The second output of this block will be active otherwise (in any other moment after the first and only pass for the day), so the second trade can be created from there. You can use some Variable to set it to 1 when the blue arrow appears, and then check that variable before entering the second trade. The variable must be reset after another "Once a day" block in order to start with value 0 for the day, or after the second block is created if you don't want more trades for the day.

            This was the "soft" method, which will work in backtest and on live, but the problem is that the variables are reset when the EA is reloaded, and the "Once a day" block as well, so everything will start again if you reload the EA. To make things more "hard" and ea-reload-proof, then times must be used instead of variables, and things are going to be a little bit complex. You will need to check the Open (or Close) time of the last closed trade and compare that time with the time of 00:00 for the current trade before entering new one. Then you will need to get the time when the blue arrow was appeared and also compare it to the time of 00:00... well, getting the time of the arrow is not really easy to do in fxDreema, it's probably easier to make it in plain code.

            1 Reply Last reply Reply Quote 0
            • U
              uchiha last edited by

              Thats pretty complex 😮 , anyway I have a new problem, how do I stop trading till the next day after hitting take-profit. I know variables could work, problem is I dont know how to use them 😕

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

                Well, things are getting complex when searching for something is involved. As I explained, there are 2 ways of working with this:

                1. Not searching at all, but using some variables to set some values when certain events happen and then check those variables before doing something. This is intuitive and fast (because you don't search for something in the history), but when you close the EA - it's all gone (sometimes you may prefer this).
                2. Searching the past data for whatever you need. But there are not many blocks for this. Those that are available are pretty simple, for example "No trade is running" is a block that searches for a trade that is currently running.

                There is no block to search for a trade that was closed today on TP, but here is something alternative: https://fxdreema.com/shared/IesEuQiyd The only thing is... if you don't get how variables work, then I think you will not get this as well 🙂

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

                Online Users

                A
                H
                H

                7
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors