fxDreema

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

    How to check if a trade is there in related currencies

    Questions & Answers
    3
    4
    1522
    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.
    • vish
      vish last edited by vish

      I want to have only one trade with a particular pair and related pairs in my trading account. For instance, when I have a EURUSD trade running, then the EA should not open a trade on a pair that has either EUR or USD as base or quote currency. That means EA will not open a trade on GPBUSD as USD is there and EA will not open a trade with EURAUD either as EUR is there. But EA may open a trade with CADJPY as the pair has no USD or EUR. How can I achieve this in fxdreema?

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        Here is some example where I extract the currencies from the symbol name of one trade:
        https://fxdreema.com/shared/tT6MjUDEd

        Another example:
        https://fxdreema.com/shared/xPfLEwQS

        Here I have these global variables:
        0_1558185258085_6146c4cc-260b-4bda-9af2-2928a692fa7b-image.png

        TradeSymbolName is a symbol name that is coming from somewhere... I don't know where, that's why I set it to two different values in blocks 3 and 6.
        Then in block 4 (block 7 has the same code) I'm scanning all running trades that match one of the currencies in TradeSymbolName. If match is found, then TradeFound is set to true.

        1 Reply Last reply Reply Quote 0
        • vish
          vish last edited by

          Thanks. Will test it out

          G 1 Reply Last reply Reply Quote 0
          • G
            gpaneers @vish last edited by

            @vish Did you finish it successfully? Please do update..I am also having same requirement.... @fxDreema I have just copied and pasted your link text example 3 - 8 blocks.... Please do update...

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

            Online Users

            S
            A
            M
            M
            E
            C
            M
            F
            L
            F
            F
            E
            K

            28
            Online

            146.6k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors