fxDreema

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

    my ea does not take sell positions.

    Questions & Answers
    4
    10
    498
    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.
    • S
      saadatfx last edited by

      Hi
      I have created an ea based on a low pass filter indicator and previous 52 candle high/low. The ea takes Buy positions but not even single Sell. Can anybody tell me what the problem is?

      this the link : https://fxdreema.com/shared/S96Vy9SV

      Thanks

      Morpheus_0 1 Reply Last reply Reply Quote 0
      • Morpheus_0
        Morpheus_0 @saadatfx last edited by

        @saadatfx - I am not familiar with that custom indicator but in Blocks 15 & 16 you have the same Output Buffer....

        That may be the problem.....(?)

        S 1 Reply Last reply Reply Quote 0
        • S
          saadatfx @Morpheus_0 last edited by

          @Morpheus_0 Thanks but I don't think that's the problem, cause when I remove block 17 and 18 it takes sell positions even with the same buffer.

          Morpheus_0 l'andorrà 2 Replies Last reply Reply Quote 0
          • Morpheus_0
            Morpheus_0 @saadatfx last edited by Morpheus_0

            @saadatfx - Strange. So the problem is likely in block 18 but I couldn't tell you what it is....Sorry...:(

            But keep at it. There's usually a solution*

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

              @saadatfx The problem is with that variable called 'low_52_price'. Can it be 0? If so no number can be below 0 as required by block 18.

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

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

                @l-andorrà I used custom mql block to generate two variables.
                This is the first one:
                low_52_candle=iLowest(NULL,0,MODE_CLOSE,52,1);
                low_52_price=Low[low_52_candle];

                and this is the second on:
                high_52_candle=iHighest(NULL,0,MODE_CLOSE,52,1);
                high_52_price=High[high_52_candle];

                Buy position works fine with "high_52_price" in block 17. But sell position doesn't work.

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

                  But that custom code is not connected to any block so it is not executed. 🙂

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

                    I put comments to check if the values of so called variables are being calculated correctly or not which they were. But still no lock on Sell positions. So I found and used another custom indicator to give high and low based on a period and it worked.

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

                      Congrats!

                      (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
                      • S
                        sktsec @saadatfx last edited by

                        @saadatfx
                        iHighest(NULL,0,MODE_CLOSE,52,1)

                        Do you mean i+1 rather than 1.
                        iHighest(NULL,0,MODE_CLOSE,52,i+1)

                        "i" mean the current bar of interest. Maybe not "i" exactly. You can simply set a variable to get the current bar and then use it instead.

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

                        Online Users

                        H
                        G

                        11
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors