fxDreema

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

    How can I get the price for a buy or a sell of my current trade

    Questions & Answers
    3
    5
    1149
    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.
    • R
      rrpons last edited by

      I am trying to reduce my loses comparing the price that was bought with EMA but I don't know how get the value or the arrow that draw the block buy or sell. Thanks

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

        You are talking about the Open Price of the trades? You don't get this one from the objects, you get this from trades. I can say that you probably need to use "For each Trade" with some other pink blocks, but it depends. I mean, "For each Trade" is the block that can loop for each existing trade and select it (so you can get its values), but it's important which trades do you want to select, in what order, how many of them...

        R 1 Reply Last reply Reply Quote 0
        • R
          rrpons @fxDreema last edited by

          @fxDreema said in How can I get the price for a buy or a sell of my current trade:

          t's important which trades do you w

          I am having one trade at the time. I am using a kertnel chanel for a scalping strategy. when you put order to buy or sell, the metatrader plataform draw some arrow to visualize the order. I am crating a line on each arrow and it stay there until other condition will close my trade and it will be erased. Now when the EMA line of Kertnel chanel crosses above or below the line that i put on the arrow trade, it close my trade 0_1504147731220_Untitled.png . I am spanish spaker so I upload a picture because you can get better idea what I trying to do.Thanks anyway

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

            maybe this ?

            0_1504166355298_FXDR221.jpg

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

              @rrpons But if I'm not wrong, only the Tester prints those arrows. When I create a trade in my MT4, I only see horizontal line. But nevermind, you don't need such object at all. When the trade is there, its Open Price is known and can be read.

              I think you can do this with "For each Trade" and few other blocks where you can check the values and finally close the trade with the pink "close trade". But please, take a little time and try to understand how these blocks work: https://fxdreema.com/examples#Loop-(For each...)

              @Pipperoni, be careful with the first 2 parameters in those "Draw..." blocks. Only when A is No and B is Yes the name is a Name and not a Prefix.
              Also, when you compare prices, never use that == sign. There is very little chance to see 2 prices exactly the same. You are measuring distance, but it's similar, you still have 2 price values compared with ==.

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

              Online Users

              A
              Q
              V
              F
              S
              S
              Q
              P
              J
              H
              Q
              R
              E
              W
              Q
              K
              C
              M
              G
              E
              B

              27
              Online

              146.9k
              Users

              22.4k
              Topics

              122.6k
              Posts

              Powered by NodeBB Forums | Contributors