fxDreema

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

    Simple EA Help

    Questions & Answers
    help
    3
    10
    2478
    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.
    • J
      Jgwap203 last edited by

      I need help making a simple EA.So my broker allows hedging and I do not like this feature.I would like an Ea that would disable this feature, like not allowing to open a buy or sell allow at the same time.For example, I have 2 pending orders (buy and sell) .it hits my buy stop order but my sell is still pending .Price reverses and it hits my sell stop.Once it hits my sell stop, my buy stop trade will exit.I would like this to work for all currency pairs/timeframe .If anyone can make this simple EA I would be thankful

      P

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

        Easy. You should use a 'No trade' block on top of your buy and sell block's trees. That way you avoid a new order once one of them is still active. Than you will need a variable to control when to erase a pending order when a buy or sell is immediately open.

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

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

          @l-andorrà I do not want to erase my pending order.let me give an example...………..I placed a pending order a buy stop and a sell stop(I didn't set a stop loss on these orders) Minutes later my buy stop gets hit( I do not want the EA to cancel the sell stop pending order).3 hours later my sell stop gets hit, for the EA, once it hits the sell stop, I want it to cancel the buy order I am already in .EA should work with all pairs.It should should not allow me to have a buy and sell order open on the same pair.

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @Jgwap203 last edited by

            @jgwap203 Maybe something like this?

            0_1569291362945_1a3bac2f-fa16-44d1-bd45-633119b8d7a3-image.png

            If a Buy trade is created (eg. a Buy order is triggered) you close open sell orders? You do this on "on Trade" tab

            I like to share my knowledge, but expect the others to contribute as well.

            J 1 Reply Last reply Reply Quote 0
            • J
              Jgwap203 @trader.philipps last edited by

              @trader-philipps yes if a buy ordered is triggered it should close all open sell orders......BUT will this close all open sell orders I have open or only for that currency pair? For example, if a buy ordered for eur/usd , I want it to only close open sell orders for eur/usd and and not other sell open orders.Im trying to design a code that will work with all pairs I have open but not affect each other.Thank you so much for replying and willing to hear back from you

              T 1 Reply Last reply Reply Quote 0
              • T
                trader.philipps @Jgwap203 last edited by

                @jgwap203 It should only close the trades on the symbol the EA is attached to - unless you specify different in the blocks.

                I like to share my knowledge, but expect the others to contribute as well.

                J 2 Replies Last reply Reply Quote 0
                • J
                  Jgwap203 @trader.philipps last edited by

                  @trader-philipps is there a way instead of posting the EA on multiple symbols, I can post the EA on one symbol and it would reconize to do this for all symbols ? I trade the majors and minors currencies so that’s about 28-26 pairs

                  1 Reply Last reply Reply Quote 0
                  • J
                    Jgwap203 @trader.philipps last edited by

                    @trader-philipps If it cAnt be done then I have no choice to post the EA multiple times

                    T 1 Reply Last reply Reply Quote 0
                    • T
                      trader.philipps @Jgwap203 last edited by

                      @jgwap203 There are ways to have a sine instance managing a defined set of symbols in fxdreema. However it complicates things a bit as you have to cycle through the symbols.
                      I'd say first step is to make it work on current pair and after that think about the Multi-Symbol approach.

                      I like to share my knowledge, but expect the others to contribute as well.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        Jgwap203 @trader.philipps last edited by

                        @trader-philipps ok i will test it out in a few hours and let you know, again thank you for your time to help me.

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

                        Online Users

                        A
                        A
                        E

                        17
                        Online

                        146.7k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors