fxDreema

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

    How to open a new trade if existing one still active ?

    Questions & Answers
    3
    15
    2490
    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
      saeed 2 last edited by

      By using Check Trade " no trade / if trade " .. in this scenario only can have one open trade

      how can i open a second trade while the first trade still active under certain condition .. and the maximum active trade will be two only

      ex. No trade has " buy now and sell now " .. EA based on conditions trigger the "buy now" and now i have one active trade .. after few hours the "buy now" is still active but conditions of "buy now OR sell now" is matched but because of "no trade" i can't open a second trade

      how can i let the "NO TRADE" open the second trade while first trade still active ... and no way to open a third trade till one of these open trades closed BASED on "If Trade"

      A 1 Reply Last reply Reply Quote 0
      • A
        ambrogio @saeed 2 last edited by

        @saeed-2 you can use the "group" and you have to handle them separately for each strategy

        0_1611334204302_ma_cross.JPG

        1 Reply Last reply Reply Quote 0
        • S
          saeed 2 last edited by

          so i need two " NO TRADE " and one " IF TRADE "

          First " no trade " will be group (1) and all ( buy now and sell now ) is group (1)

          Second " no trade " will be group (2) and all ( buy now and sell now ) is group (2)

          IF trade .. no need to assign group (1) and group (2)

          correct ?

          thanks for your quick reply and assistance

          A 1 Reply Last reply Reply Quote 0
          • A
            ambrogio @saeed 2 last edited by

            @saeed-2 it is not correct, also the "if trade" block must recognize the trades by group number.
            Anyway, may be that we are complicating things, what is your strategy? if you have only one strategy that repeats you can use "ounces per bar" block.

            S 1 Reply Last reply Reply Quote 0
            • S
              saeed 2 @ambrogio last edited by

              @ambrogio 0_1611477137749_Screen Shot 2021-01-24 at 12.27.24 PM copy.png

              so by using once per bar the connections between blocks will be like this .. correct ? Maximum times to pass ( 2 ) because i need only two active trades

              also a question sir .. i want to specify 12 pair currency only .. each with different parameters .. so in this scenario two things i need to follow:

              1. If trade / buy now & sell now / no trade .. Symbol mode ( specified ) and i fill in the specified symbol ( lets say EURUSD )

              Note ... if the account is standard and using "m" like EURUSDm .... if i specified in symbol (EURUSD) the EA will recognize the pair ? or i need to add "m" ?

              1. i need to have 12 different structure combination connection same as the attached picture .. each with different parameters and specified symbol ?

              Note .... Group # ... since i will have 12 difference structure and each with specified symbol .. do i need to have 24 Group# in total since each structure needs two .. or since each structure is specified by certain symbol i can use only group# (1) and group #(2) ?

              thanks a lot for your time and assistance again .. appreciated

              A 1 Reply Last reply Reply Quote 0
              • A
                ambrogio @saeed 2 last edited by

                @saeed-2 said in How to open a new trade if existing one still active ?:

                @ambrogio 0_1611477137749_Screen Shot 2021-01-24 at 12.27.24 PM copy.png

                so by using once per bar the connections between blocks will be like this .. correct ? Maximum times to pass ( 2 ) because i need only two active trades

                If you put one per candle and specify passes 2 times, he puts two orders on the same candle, and then another two on another candle if the condition is met. Is that what you want?

                also a question sir .. i want to specify 12 pair currency only .. each with different parameters .. so in this scenario two things i need to follow:

                1. If trade / buy now & sell now / no trade .. Symbol mode ( specified ) and i fill in the specified symbol ( lets say EURUSD )

                Note ... if the account is standard and using "m" like EURUSDm .... if i specified in symbol (EURUSD) the EA will recognize the pair ? or i need to add "m" ?

                I don't know, just try

                1. i need to have 12 different structure combination connection same as the attached picture .. each with different parameters and specified symbol ?
                  Note .... Group # ... since i will have 12 difference structure and each with specified symbol .. do i need to have 24 Group# in total since each structure needs two .. or since each structure is specified by certain symbol i can use only group# (1) and group #(2) ?

                I've never worked on multipairs, I think there are some blocks to simplify the project like "set current market" or something like that

                1 Reply Last reply Reply Quote 0
                • S
                  saeed 2 last edited by

                  @ambrogio said in How to open a new trade if existing one still active ?:

                  If you put one per candle and specify passes 2 times, he puts two orders on the same candle, and then another two on another candle if the condition is met. Is that what you want? no , what i want is to have a maximum open trade (2) for specify symbol ... lets say conditions met to buy for "EURUSD" .. the trade is active foe couple of hours and suddenly the trend reverse and sell conditions met .. so i need EA to open a sell trade .. in this scenario i need only maximum two open trades and don't want to open anymore unless one of these closed ..

                  it could be the opposite .. buy trade EURUSD is active for couple of hours and conditions met again to open another buy trade EURUSD ... so here i have two buy trades and i don't want to have any more trades till one of them closed.

                  i guess if i remove "once per bar" for attached picture .. i can have only two trades and it will work .. i will try when market opens

                  regarding specify the pair currency .. can i use " symbol specified " at "NO TRADe" ? or i have to use "set current market" ?

                  thanks a lot for your time and assistance

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @saeed 2 last edited by

                    @saeed-2 please, can you share your project?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      saeed 2 @ambrogio last edited by

                      @ambrogio shared/8ADleW5Mb

                      what im trying is to have this concept :

                      here i have group 1 2 3 4 .. when EA start operating .. when any of these conditions met .. EA will open a ( only one )trade ..

                      • IF first trade still open and conditions met for any of them .. second trade will open .. so now i will have two open trades

                      *IF first and second trades are "same" type "buy buy or sell sell " AND both of them still active AND conditions met for remaining groups .. third trade will open as opposite type " if first second active trades are buy .. the third one will sell if conditions met.

                      IF first trade is buy type and second trade is sell trade .. EA will not open any new trades until one of opened trades closed

                      please check the attached file and try to assist me .. thanks a lot for your time and assistance

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        ambrogio @saeed 2 last edited by

                        @saeed-2 Oh this kind of things are a little complicated for me, sorry 😞 , maybe someone like andorrà or roar definitely solves it.

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          saeed 2 @ambrogio last edited by

                          @ambrogio

                          i just finished this correlation .. i will check if it works

                          0_1611667450577_check trade count.png

                          see its like that ..

                          1. current market >> EURUSD
                          2. once per bar >> 1
                          3. check trades count >> less than 3

                          each with different parameters and conditions

                          i have one more question .... regarding trailing stop (stop loss ) >> i need to apply this concept >> if equity % is less than 20%, soft stop loss will be adjusted to another far pips ..

                          example .. initial SL = 80 pips ... equity % less than 20% .. when price hit initial SL .. trailing stop will shift the SL to 160 pips from open price distance

                          how can i apply it ?

                          thanks a lot sir for your assistance and time .. you helped me a lot in this discussion .. thanks

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            saeed 2 @saeed 2 last edited by

                            @saeed-2

                            @l-andorrà
                            @roar

                            could you please help me to resolve this issue

                            thanks lot

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

                              @saeed-2 Can you please share the link to your project?

                              (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 1
                              • S
                                saeed 2 last edited by

                                sorry for late reply sir, i found it and its working now

                                thanks a lot for your time and assistance

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

                                  @saeed-2 You are welcome.

                                  (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

                                  L
                                  A
                                  G
                                  N
                                  S
                                  E
                                  S
                                  N
                                  O

                                  21
                                  Online

                                  146.7k
                                  Users

                                  22.4k
                                  Topics

                                  122.6k
                                  Posts

                                  Powered by NodeBB Forums | Contributors