fxDreema

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

    Subtracting / Adding pip to price

    Questions & Answers
    2
    6
    3506
    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.
    • F
      fxdude last edited by

      Hi

      I would like to buy when the Bid/Price has moved 15 pip above the open price (using Daily bar charts).
      Like : (Current Bid price) - (Current bar open Price) > 15 Pip.
      the " - " is deduction/minus sign.
      This is the same as buying when the price has passed 15 pip above the opening price.

      Or sell when the Bid/Price has moved 15 pip below the open price.
      Like : (Current bar open Price) - (Current Bid price) > 15 Pip.
      the " - " is deduction/minus sign.
      This is the same as selling when the price has passed 15 pip below the opening price.

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

        In "Condition" block on many places you will find "Adjust". Click on it and an input field will appear. Write "+15pips" to add 15 pips or "-15pips" to remove. The word "pips" will be replaced with a proper piece of code, so it will work that way.
        You can also add/remove value like 0.0015.

        1 Reply Last reply Reply Quote 0
        • F
          fxdude last edited by

          Hi

          Thank you, this worked fine.
          I have a with "Spread Filter" block and how to use it.

          I am using a five digit broker, 0.00001, and have therefore set the point format to 0.00001

          1. If I wish to have a maximum spread of 0.00004 (using a five digit broker), what should I enter in the max spread
            box, 4 or 40 ? And should this be entered in as "4pips" and "40pips" or without the pips as just "4" and "40".

          2. And where should I place the "Spread Filter" block ? Before the "Buy" block or at the top ?

          I made an EA, but when I add a "Spread Filter" block before the buy block the EA stop working.
          So I am getting the "Spread Filter" setting / location wrong.

          1 Reply Last reply Reply Quote 0
          • F
            fxdude last edited by

            Hi again.

            I think I understand how the "Spread Filter" block works now.

            1. If I want max spread to be 0.00004 I enter 4 in the max spread field (point format is 0.00001 in this example).

            2. I place the "Spread Filter" block just before the buy/sell block. So it is the block before/next to buy or sell block.

            Can you pleas say if my understanding of point 1 and 2 is correct?

            Something else I would like to ask you.
            When trying to trade in time frame of less than a second / on tick by tick base (1 minute chart), sometimes this happen with this message from MT4:

            "the trade was successfully opened but failed to modify the stop loss/take profit".

            So the trade was opened successfully, but it is running without stop loss / take profit.
            [I think this happens because I set small profit levels as 0.00009 and the price/ticks move too fast to implement stop loss/ take profit as well]. But this happens maybe in 1 out of 25 trades.

            Are there any blocks I can use to close open/running trades that do not have stop loss/take profit level (failed to create) ? Because the trade will remain open until closed (possible huge losses) and no other trade can be opened if I use the "If no trade is running" block in the EA.

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

              1 pip is equal to 0.0001 now and before. No matter if your broker uses 0.00001 digits or no, fxDreema works in 0.0001 format by default. But if you want to change it, go to "Options -> Current project options" and change "Point format".

              0.00009 equals to 0.9 pips, which is pretty small and that's why you get that error.
              There is a "Close each trade" block - blue in color.

              1 Reply Last reply Reply Quote 0
              • F
                fxdude last edited by

                I know what a pip is. 😆 😏
                You wrote "pips" next to the field I was talking about, that was the point. Seems you missed it although 😆 😆 😄 😏 😏

                You are a genius alright 😄 😄 😄
                You might want to remove the 'pips' if you don't want to get confused.

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

                Online Users

                E
                H

                13
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors