fxDreema

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

    On trade not working correctly

    Bug Reports
    4
    11
    1174
    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.
    • C
      Criptofuture last edited by

      https://fxdreema.com/shared/FZEX6dA7d
      Hi there, I built the same structure in On Tick and On Trade and when using On Trade the counters do not work correctly, some trades are not being counted, I cant seem to find the reason.
      I would appreciate your help!
      Thanks in advance

      TipsyWisdom 1 Reply Last reply Reply Quote 0
      • TipsyWisdom
        TipsyWisdom @Criptofuture last edited by

        @criptofuture I would just use it where it works then. If it isn't working on 1 section, programmatically or logically it must not be meant for that area.

        Perhaps there are specific coded style blocks that work only in that section?

        1 Reply Last reply Reply Quote 0
        • C
          Criptofuture last edited by

          Allegedly they work exactly the same, the thing is that when using On Tick it consumes a lot of resources, for example when backtesting usually 1 year takes 2 hours and a half, now is running 13 hours already and its on the 4th month, so we could assume it will take around 60 hours for the same backtest.

          TipsyWisdom 1 Reply Last reply Reply Quote 0
          • TipsyWisdom
            TipsyWisdom @Criptofuture last edited by TipsyWisdom

            @criptofuture said in On trade not working correctly:

            Allegedly they work exactly the same, the thing is that when using On Tick it consumes a lot of resources, for example when backtesting usually 1 year takes 2 hours and a half, now is running 13 hours already and its on the 4th month, so we could assume it will take around 60 hours for the same backtest.

            simplest solution, run everything ontick, under a Once Per Bar, under a "Set Current Timeframe" block. Now you have full bar control.

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

              Some months ago I rewrote the code that was responsible for the filtering on those Trade events, and I'm confident that I did a good job, but bugs are always possible. If there is a bug, I would like to fix it, but it's kinda big project. If you think there is a bug, could you make another projec that only contains the blocks needed to show the bug? It should contain maximum 3-4 blocks.

              1 Reply Last reply Reply Quote 0
              • C
                Criptofuture last edited by

                https://fxdreema.com/shared/Oi7rdxxvc
                Im having 2 problems, the first one is the one already described, the structure is as simple as 2 blocks. The 2nd one is that I want to take partial profits, what happens is that as soon as the trade is opened, 50% of it is closed. It doesnt wait to reach the "pips away from open price" amount.

                I appreciate your help!

                TipsyWisdom 1 Reply Last reply Reply Quote 0
                • TipsyWisdom
                  TipsyWisdom @Criptofuture last edited by

                  @criptofuture

                  solution to 1 is probably just do what I suggested. forget doing it OnTrade. Leave it OnTick, and put it under a If Position block. Now you've circumvented the resources argument of that. And for lessening the resources further, you can put it under a once per minute block.

                  As for the pips problem, the answer is the few MM away from what you selected.

                  0_1642913838048_84df8613-f30d-4466-9807-8b41558cecb5-image.png

                  1 Reply Last reply Reply Quote 0
                  • C
                    Criptofuture last edited by

                    @TipsyWisdom
                    Thank you for taking the time to answer.
                    I tried what you said "1" and also this "2" But it still doesnt work. 50% of the trade is still being closed as soon as is opened.
                    1
                    0_1642972104207_978bb942-376c-4430-8d51-99fd7353c8f4-image.png
                    2
                    0_1642972173764_5de91aa9-5a1a-474c-9128-e2526a16abd2-image.png
                    The EA trades when there is high volatility, so its important for it to count the trades every tick or as soon as they are closed. In order to do that is vital that it is counted On Trade, since I want to backtest the bot without it taking 60 hours a time.

                    TipsyWisdom 1 Reply Last reply Reply Quote 0
                    • TipsyWisdom
                      TipsyWisdom @Criptofuture last edited by

                      @criptofuture said in On trade not working correctly:

                      @TipsyWisdom
                      Thank you for taking the time to answer.
                      I tried what you said "1" and also this "2" But it still doesnt work. 50% of the trade is still being closed as soon as is opened.
                      1
                      0_1642972104207_978bb942-376c-4430-8d51-99fd7353c8f4-image.png
                      2
                      0_1642972173764_5de91aa9-5a1a-474c-9128-e2526a16abd2-image.png
                      The EA trades when there is high volatility, so its important for it to count the trades every tick or as soon as they are closed. In order to do that is vital that it is counted On Trade, since I want to backtest the bot without it taking 60 hours a time.

                      id be sure there is a spread filter of sorts trading in those conditions.

                      Perhaps try not doing it in the "custom (in pips)" and just use the one called Pips?

                      As for the group numbers, can you troubleshoot and try to do it without group numbers? Just get it to try to count all trades first and see if there is issues. I have always had problems with groups. Too much logic for me to think about because once you introduce groups, you must handle that entirely separate from everything else. It no longer even falls into the "all trades" category.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        Criptofuture @TipsyWisdom last edited by Criptofuture

                        @tipsywisdom I solved it this way: https://fxdreema.com/shared/QdgMaj4sd

                        l'andorrà 1 Reply Last reply Reply Quote 0
                        • l'andorrà
                          l'andorrà @Criptofuture last edited by

                          @criptofuture Thank you for sharing.

                          (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                          (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                          (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

                          Online Users

                          Y
                          A
                          F
                          S
                          D
                          B
                          Y

                          16
                          Online

                          146.8k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors