fxDreema

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

    Please help with glitch in trend following EA

    Questions & Answers
    2
    5
    86
    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
      spyderman last edited by

      So trying to place a buy or sell when market moves 10 pips either way. s/l is 10 pips with no t/p. EA moves all trades to BE when they profit 10 pips.
      So idea is that as market moves up there's a new buy every 10 pips with only the last trade having risk. If price moves the other way then a sell is placed. I've got the EA looking at the last trade to see if it's moved 10 pips. Works great on one direction. But when market reverses it doesn't take opposite trade.

      I believe it's because as the market reverses it takes out the last trade (a buy in this case) and so it can't grab that open price as the baseline for the 10 pip move down. So it reverts to the next open trade (which is 10 pips lower). And so from it's perspective, it never gets 10 pips below the "last" trade.
      How would I have the EA select the open price for the last position opened., whether it's closed now or not.

      Here's the blocks and thank you so much: https://fxdreema.com/shared/TfLAy6w0e

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

        You should definitely use a variable to store the value of the last open trade. That way the bot can 'remember' it regardless it's closed or not as you said.

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

          Okay, thanks. That makes sense. I've tried to do that before and can't seem to figure out the variable thing. I'll have to look for some tutorials.

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

            @l-andorrà Thanks again for the help. I think I got it working. May not be the prettiest but seems to work in back tester as I wanted. Now will try on demo account.

            https://fxdreema.com/shared/r3kd7Rkpe

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

              Those pink blocks should be separate from its current position and be on a completely separate block tree.

              (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

              R
              S

              14
              Online

              146.9k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors