fxDreema

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

    problems with "check consecutive losses"

    Questions & Answers
    2
    11
    3154
    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.
    • E
      elninobrown last edited by

      Hi again,

      Here is my EA: makes 4 trades in 4 currancys. 1 trade per currancy. I built a "check consecutive losses" (to check the last lost trade). The idea is, that if for example EUR/USD (0.05 lot) is lost, that the next trade of EUR/USD is trade with double lotsize (0.1) The problem is:
      Tradehistory:

      1. trade: EUR/USD= won (0.05 lot)
      2. trade: USD/JPY= lost (0.05 lot)
      3. trade: EUR/JPY= won (0.05 lot)
      4. trade: GBP/USD= lost (0.05 lot)

      You can see, that the EUR/USD is won, so I dont need to double the lotsize in the next EUR/USD tarde. But in the trade history you can see a lost trade at least, so the EA thinks that we have a lost trade so we must double the lotsize in the next trade...

      next active trades must be look like this:
      5. trade is running: EUR/USD (0.05 lot)
      6. trade is running: USD/JPY (0.1 lot)
      7. trade is running: EUR/JPY (0.05 lot)
      8. trade is running: GBP/USD (0.1 lot)

      My english is not so good, so I hope you can understand my problem. I need help!
      Thanks for your time!!!

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

        I can see in your project that you are using specific market (symbol) names, and in this case the block sees only those. Try with "Any market" for Market mode.

        1 Reply Last reply Reply Quote 0
        • E
          elninobrown last edited by

          Hi,
          i used it with "any Markets" befor... but it does not work. So I make a series of blocks for all the 4 currancys.... And how does he knows that I want to use EUR/JPY, USD/JPY, EUR/USD and GBP/USD. I want to put the EA only in one Chart.

          1 Reply Last reply Reply Quote 0
          • E
            elninobrown last edited by

            Is it right, that "check consecutive losses" only watch at the last closed trade in my account? Disregarded by currancy? Maybe there is a better check function on fxdreema for my example????
            Thanks!

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

              It's good for someone to try new things, but if you find that some block does not work as expected - tell me instead of trying to find alternative and more complex way of doing the same thing. If it's broken I will fix it.

              It's not possible to work with another symbols when backtesting, only the current one is allowed, this is from MT4. Maybe this causes confusion. Otherwise on demo it's possible, but more difficult to test something there...

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

                I think you need "Check last closed trade profit", as it gets information from the last filtered trade only.
                "Check consecutive losses" counts the number of losses happened in a row (looking at the filtered trades, skipping all the others), and it compares them to the desired value.

                1 Reply Last reply Reply Quote 0
                • E
                  elninobrown last edited by

                  ok, i will test it with "check last closed trade profit". I test it not with the strategy tester- i test it on mt4 demo. Maybe it is better to test it with one currency 😉

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

                    For sure, it's always best if you can simulate something as fast (and accurate) as possible. In my opinion, the main weakness of MT4/MT5 is that it's slow when backtesting and it's pretty hard to find some problem.

                    By the way currently I'm rewriting most of the trading functions (MQL4/MQL5) and I think I found some possible problem when working with multiple currencies, so if you can do all with a single currency - do it.

                    1 Reply Last reply Reply Quote 0
                    • E
                      elninobrown last edited by

                      hmmm, ok! I create a new one with "check last closed trades profits" and if the profit is equal or higher than 0 USD the EA make a normel trade with 0.1 lot. Otherwise, the EA will make a trade with 0.2 lot. BUT, what is if the next trade is lost too? I was wondering if I can tell him in the Buy/Sell-block "Ok, if you lost the last trade, you make a new trade with 2 x the lots of the lost trade." How can I make this????

                      Thanks a lot!

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

                        This is known as Martingale, and there is a special block for this, you can scroll down and you will find it. All these blocks are like Buy now and Sell now with additions.
                        In the future I want to add all these money managements inside Buy now and Sell now, but now they are in independent blocks.
                        I just found that Labouchere blocks don't work, but I will fix that tomorrow 🙂

                        1 Reply Last reply Reply Quote 0
                        • E
                          elninobrown last edited by

                          Thanks! I found this block! You can close this post 🙂

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

                          Online Users

                          M
                          A
                          E

                          12
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors