fxDreema

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

    Compare orders and close with profit coverage.

    Questions & Answers
    4
    19
    2981
    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.
    • F
      fabiobioware last edited by

      Hi guys, I would like to know if you can help me.

      I have 20 open orders.
      10 purchases
      10 sales

      I want my EA to start eliminating orders, and what would this elimination look like...
      He will have to compare some buy and sell orders with each other.
      When he realizes that for example:
      purchase order 0.01 current value is -$3.50
      sales order 0.01 current value is $3.55
      So he must immediately close these 2 orders guaranteeing me the profit of $0.05

      This looping must always happen.
      Can anyone give me an idea how I can make this work?

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

        @fabiobioware This is a reccurrent request in this forum. The problem with that is that the loop required to do it is very complex and I'm not sure if someone managed to get it. Probably miro or roar could help.

        (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.

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

          @l-andorrà I imagine my friend, it seems to be something very difficult to do.

          1 Reply Last reply Reply Quote 0
          • L
            LadyDolares last edited by

            hello ,This is an issue that I can't solve either. For this reason, I close the trade with total profit. How can we do it, if we create a brainstorm here, I am sure we can solve this problem with the help of the masters.

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

              I dont think this is a good thought. Its like gridders, or recovery systems.

              They are all just systems of helping a robot, or person that consistently makes bad trades. It would be more wise to filter out the losses with price action filters....or an indicator on the right time frame.

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

                trail stops and or break even, per trade is also a lot less risky and the blocks already exist.

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

                  @tipsywisdom Everyone has their own strategy. I don't think there is a general right or wrong in these works. The parities we use are different for all of us.
                  so your answer is not a solution to our problem.

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

                    It was a thought, "I dont think..." It was intended to help you think.

                    Absolutely! There is not a right or wrong way. But some more food for thought....

                    When creating EA's its really good practice to prove that you can first take and exit trades profitably before trying to do anything outside of your conditions, and buy/sell now. Anything else you add before you can prove the "edge" you've found is pointless if your original edge is not an edge at all.

                    If you rely on gridding to stay profitable it will bust eventually.
                    If you rely on recovery systems, it will bust eventually.
                    If you rely on having to guarantee profits because you have tons of trades open and can't figure out how to close profit early enough or enter a trade at a better time, it will bust eventually.

                    Everyone here in the Dreema forum is against talking strategy and only wants help with the 1 specific thing that their brain thinks is the golden ticket. Many years and many people all have the same thoughts and the same golden tickets.

                    Hopefully you dont blow out your accounts with these false promises that you should never lose a trade.

                    it would be a better community if those who have been around long enough would simply respond with, "thats not a good idea, hundreds of people come in here and try it."

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

                      @tipsywisdom
                      I have been in this market for many years and believe me, I know very well how difficult it is to make money. You are absolutely right in what you wrote.

                      I still believe that @miro and @roar @fabiobioware's will be someone who can answer his question. Maybe it can evolve into a good method starting from here.

                      1 Reply Last reply Reply Quote 0
                      • F
                        fabiobioware last edited by

                        Hi friends, I somehow managed to do what I wanted and I'm enjoying the results a lot.
                        I know that maybe my logic is not so good, but I'm trying to improve and I hope I can help some people, comment here who can have help with this.

                        Well come on, what is this project doing:

                        1. The EA will first monitor and add in real time the profit value of all open purchases in a variable
                        2. The EA will then locate the oldest sale and monitor its value.
                        3. The EA then applies a formula adding the value of the buy orders + the value of the Sell order in this case a single order.
                        4. Then he then includes in the calculation a "profit" that I want to make on this closing.
                        5. He then fulfilling the rule again finds that particular sale and closes it with purchases at profit.

                        So I managed to do what I want, which is to use a good sell amount to eliminate an older order that was prejudging my trades.
                        Why did I do this?
                        Answer: Because some of my EAs work with grid and generally strategies like that tend to leave orders behind when they get trend.
                        The idea is to eliminate the countertrend orders that are consuming my balance.
                        Here's the project for who knows someone can improve, I know there's a lot to improve and I'm sure that many will be able to do this, good benefit for those who need it.
                        Project ---> https://fxdreema.com/shared/Wduu0hbGc

                        Image closing order sell 0_1626825330180_closing order sell.JPG

                        F l'andorrà 2 Replies Last reply Reply Quote 1
                        • F
                          fabiobioware @fabiobioware last edited by

                          @fabiobioware

                          Regarding what you think or don't think about strategy, the best thing we can do is "try" to get something good for ourselves.
                          Whether working with grid, martingale, stop loss or no stop loss, what matters is finding a way to withdraw money from the market and be smart enough not to return it.
                          For this we just need to "try" if we just stay "talking and criticizing" we won't leave the same place.
                          Let's win in this manipulative market.

                          L 1 Reply Last reply Reply Quote 1
                          • l'andorrà
                            l'andorrà @fabiobioware last edited by

                            @fabiobioware Very interesting. Thank you for sharing. Does it work for any number of open buys and sells?

                            (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.

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

                              @l-andorrà
                              Yes, he is watching first if he has enough profit to cover any buys or sells that are negative on opposite sides, I did it this way for him to find some operation on the opposite side so that he can eliminate and still generate a profit as this would be good for decrease order quantity and invoice some $, of course this project doesn't include something already with the commission and swap rates which is what I'm trying to do now and it would be brilliant.

                              1 Reply Last reply Reply Quote 0
                              • L
                                LadyDolares @fabiobioware last edited by

                                @fabiobioware I applaud you and congratulate you for the project you have created. Let's definitely do everything we can to get money from this market and never give it back.
                                At this point, I would like to share an idea in my mind based on your project.
                                There are 20 open transactions.
                                10 sell and 10 buy.
                                If the EA detects the trend direction and 1 more trade is opened in that direction
                                What do you think if it closes the transactions with the Total Profit system?

                                F 1 Reply Last reply Reply Quote 0
                                • F
                                  fabiobioware @LadyDolares last edited by

                                  @ladydolares I don't understand 100% of your idea, but let's try to simulate the situation to see if my answer will help you.

                                  In your scenario
                                  10 open purchases
                                  10 open sale

                                  The Market decides to go in the sales direction.
                                  This setup I made will do the following.

                                  1. Monitor the total profit from sales and at the same time monitor the total profit from purchases (including swap, commission and everything else)
                                  2. Set a profit amount you want, example $2
                                  3. When opening an 11th order if the profit is positive, close all chart operations.

                                  I see some details in this type of rule, the orders when opened are consuming different values ​​at all times along with the rates, including each one of them opens with a different spread.
                                  You can stay for a long time, even with the operation locked without closing due to the proportion of both sides, generally to obtain a profit it is necessary much more than 1 order more in the profit sense to close everything profitably.

                                  The project I made looks at everything that is happening again.
                                  It takes every new trade that is in the direction of the trend and is profitable to add the total value with the negative value of one of the orders on the opposite side and thus close that particular order, this I did because I like to follow the trend and I don't like to keep orders open for a long time.

                                  If I didn't express myself very well, I'm sorry.

                                  L 1 Reply Last reply Reply Quote 0
                                  • L
                                    LadyDolares @fabiobioware last edited by

                                    @fabiobioware your project is a great idea, it works perfectly.
                                    What I want to convey is a completely different idea. So different from your project.

                                    As you know, it can be extremely annoying when the trend reverses. There's an idea that I've been thinking about but haven't been able to realize.

                                    number of open transactions: 20
                                    There are 5 buy and 5 sell.

                                    EA will detect trend direction at this point
                                    If the trend is to sell, the ea buy will stop opening and sell will continue to open.
                                    All positions will be closed when Total Profit reaches the determined amount. I apologize for my bad English.

                                    How do you think this idea works?

                                    F 1 Reply Last reply Reply Quote 0
                                    • F
                                      fabiobioware @LadyDolares last edited by

                                      @ladydolares said in Compare orders and close with profit coverage.:

                                      O que quero transmitir é uma ideia completamente diferente. Tão diferente do seu projeto.
                                      Como você sabe, pode ser extremamente irritante quando a tendência se inverte. Há uma ideia na qual estive pensando, mas não consegui concretizar.
                                      número de transações abertas: 20
                                      Há 5 compras e 5 vendas.
                                      A EA detectará a direção da tendência neste ponto.
                                      Se a tendência for de venda, a compra ea compra parará de abrir e a venda continuará a abrir.
                                      Todas as posições serão fechadas quando o Lucro Total atingir o valor determinado. Peço desculpas pelo meu péssimo inglês.
                                      Como você acha que essa ideia funciona?

                                      This blue block "Bucket of Positions" can monitor the total profit of a group or all orders.
                                      Once there is a profit of $0.50 he will close all orders on the chart.

                                      But in your case involving trend, we first have to understand what you consider a trend, and how you would know you're not being confused by a correction.

                                      If he knows the trend he would put an order counter and would also put a rule so while he is in a desired number of orders and the trend is in progress he would start checking the total profit of orders so he can close everything.

                                      0_1626904440649_totalsum.JPG
                                      https://fxdreema.com/shared/z8OnfhL2d

                                      L 1 Reply Last reply Reply Quote 0
                                      • L
                                        LadyDolares @fabiobioware last edited by

                                        @fabiobioware said in Compare orders and close with profit coverage.:

                                        O quero quero iletimi é uma ideia komplemente farklı. Projeleri farklı yap.
                                        Como você sabe, pode ser ekstremamente irritante qudo a tendência se ters. Nitelikli bir fikir değil, en temel konu.
                                        Sayısız işlem abertas: 20
                                        Há 5 karşılaştırma ve 5 satıcı.
                                        Bir EA algılaması ve doğrudan doğruya eğilimi.
                                        Venda için bir eğilim, bir satış karşılaştırması yapın, bir satış sözleşmesinin devamı.
                                        Todas, posições serão fechadas qudo o Lucro Total atingir o valor determinado olarak. Özetle, pelo meu péssimo inglês.
                                        Como você acha que essa ideia funciona?

                                        Thank you for your help my friend.

                                        for example, uptrend when candlestick is above 30. (purely exemplary)
                                        and when the candlestick is below 30 it is a downtrend.
                                        There are 2 buy 2 sell open trades and the candle is above "sma-30". At this point, 1 more buy should open and all open trades should be closed when there is total profit.
                                        I will be grateful to you my friend if you show me how to do this.

                                        F 1 Reply Last reply Reply Quote 0
                                        • F
                                          fabiobioware @LadyDolares last edited by

                                          @ladydolares said in Compare orders and close with profit coverage.:

                                          por exemplo, tendência de alta quando o candle está acima de 30. (puramente exemplar)
                                          e quando o candle está abaixo de 30 é uma tendência de baixa.
                                          Existem 2 negociações abertas de compra e venda e a vela está acima de "sma-30". Neste ponto, mais 1 compra deve ser aberta e todas as negociações abertas devem ser fechadas quando houver lucro total.

                                          I believe this logic should not be too planned.

                                          Closing will only happen when you actually make a profit.
                                          The fact that you have one more buy order in profit will not close your orders unless there is a certain profit taking place.

                                          You have to plan very well what you want.
                                          The way you explained it to me I didn't understand, there are elements missing.

                                          bullish trend when the candlestick is above 30. (purely exemplary) But, the candlestick is 30 points above what? A moving average? from which period for example?

                                          There are 2 open buy and sell trades and the candle is above "sma-30". At this point, 1 more buy must be opened and all open trades must be closed when there is a total profit. ----> This will only be decisive and actually happen if you really make a profit.
                                          The order quantity will not matter, as each order has its commission and swap rate, you can find 3 buy orders and 2 sell orders and the sum of the 2 is still negative due to fees, unfortunately I don't believe in exact math on the market.
                                          But if you want to explain it to me in a little more detail, I will try to design the project.
                                          Note: Remembering that I'm not an Expert here, we have many fxdreema experts in this forum, I'm Enthusiast.

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

                                          Online Users

                                          A
                                          L
                                          S

                                          13
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors