fxDreema

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

    Lotage calculation between two lines (Solved)

    Questions & Answers
    2
    15
    1473
    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.
    • XYON126
      XYON126 last edited by XYON126

      Hello! Could someone inform me how to do the following:

      I want to put two horizontal lines, one would be the entry and the other the Stop Loss with these two lines drawn and identified (entry = ORD and stop Loss = SL)
      once these two lines are drawn, in a panel pressing a button (Buy or SELL) I calculate the distance in pips and with% of the balance I generate the operation of SELL or BUY with the appropriate lot.

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

        @xyon126 Are those lines inserted manually or automatically by the EA in the chart?

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

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

          @l-andorrà The initial idea is to manually draw two horizontal lines or, failing that, only one as Stop Loss and that by pressing a button that calculates the necessary lots for me between that line and the current price, there will be an operation with the specified percentage (included within the order) and the other option that I think is not possible with a preset amount of € or $ as well. In this way I open trades with the lot already calculated automatically with the EA.

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

            @xyon126 You will need to search for those objects and then store that info in different variables. You can fond some useful info here:

            https://fxdreema.com/forum/topic/4867/select-object-by-name-several-objects/4

            (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
            • XYON126
              XYON126 last edited by XYON126

              Ayuda, he llegado a este punto pero creo que esta todo mal, me salen muchos errores.
              https://fxdreema.com/shared/kGH1BPTad

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

                @xyon126 Primero necesitas colocar un segundo bloque en la pestaña 'on init' para que se active correctamente el bloque suelto que tienes ahora. Luego veo que otra vez pones todos los bloques en la de 'on timer'. You no soy muy partidario de usarla. ¿A ti ten funciona bien en otros EAs? Lo digo porque cuando la he usado you siempre me hace cosas raras? ¿Ralmente lo necesitas todo ahí?

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

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

                  @l-andorrà Hola. Lo he modificado y he puesto varios bloques segun lei tambien de un post de miro1360 sobre lineas y objetos pero me sigue dando error con las variables y constantes. Sobre lo de la pestaña Timer si lo cambio a la del Tick me he dado cuenta que no se regenera hasta que se genera un nuevo tick cosa que con Timer es casi inmediato. Aqui esta el status actual :

                  https://fxdreema.com/shared/PBX50dw4e

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

                    @xyon126 Pues me temo que no te puedo ayudar más. 😞 Veo ahí dos bloques de custom code que no tengo idea de lo que hacen. Me temo que te hace falta un programador para que te diga por qué te salen esos errores. Lo siento. 😞

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

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

                      @l-andorrà Hello Andorrá! I assume you mean these blocks:

                      0_1606302819156_bda1c319-f753-42bf-8246-4d86755a636c-imagen.png

                      What these two blocks do is to check that the lot obtained if it is less than that of the variable "LOT" that is taken by default that of the variable, that is, if I obtain by calculation 0.01 lots as it is less than 0.04, 0.04 will be placed default batches.(This code is from @pontedruse)

                      I have varied to simplify it and instead of 2 drawn lines that I measure between a line and the average price, many errors have been solved but I still get this error, how can I eliminate it? Is the rest okay?

                      0_1606303695950_f613a0ac-6164-47dd-94b1-e93128febaae-imagen.png

                      Here is the last state:
                      https://fxdreema.com/shared/gPlEs4P3c

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

                        @xyon126 The forst error is telling that a Constant called 'Distance' should be used somewhere. I see you have a variable called like that in use there. I don't understand why a constant is required whaen a variable is the correct thng to do.

                        About the second one, can you please tell what type of Constant is that?

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

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

                          @l-andorrà I have managed to find and solve the errors but it does not calculate the lot and it does not create the Stop Loss. Where can the error be?. Where can the error be?. Please help.:

                          Here is the last state:

                          https://fxdreema.com/shared/H95fKnjG

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

                            @xyon126 I guess there is something happening in those custom code blocks. I'm afraid I'm not a prgrammer so I cannot offer you an answer. All other blocks are correct AFAIK.

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

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

                              @l-andorrà I have tried the EA without those lots and the same thing happens to me, the problem must be in the management of obtaining the distance in the graph and entering it in the SELL or BUY block

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

                                @xyon126 I'm not sure, but I guess the problem then should be that variable called 'distancia precio'. Are you sure it is accepted for that box? You should choose any of the options of the display menu there. However you 'imposed' anew variable that maybe cannot be recognised by that block.

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

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

                                  @l-andorrà It is just what I do not know that is why I am trying, if someone knows how to do it it would be of great help since the last state is tests

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

                                  Online Users

                                  N
                                  C
                                  M
                                  D
                                  A
                                  P
                                  E

                                  21
                                  Online

                                  146.8k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors