fxDreema

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

    How to place order when price higher than all prices of old trades

    Questions & Answers
    3
    3
    411
    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.
    • M
      migen last edited by migen

      Place an buy order when price is higher than all prices of existing trades of that symbol (ie. GBPUSD) ?

      Any suggestions ?

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

        @migen How old are those 'existing trades' supposed to be? Hours, days? And do you mean open trads right now or closed ones too?

        (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
        • D
          droctagon last edited by droctagon

          Assuming you mean that when the current price is higher than the highest closing price (or perhaps the opening price) of all your trades over a given period (of your choosing):

          I would store the highest trade in a variable called something like (HighestClosePrice) or (HighestOpeningPrice) depending on what you want (I’ll assume close price). Then you could create blocks that [Close Positions] when your trade exit criteria is met, and at the point of closing you could have a [Condition] block that said IF (Market Properties:Current Price) > (HighestClosePrice) THEN [Modify Variables] of (HighestClosePrice) so that (HighestClosePrice) = (Market Properties:Current Price). If it was for the opening price you could create similar blocks at the point of the trade being opened.

          Then you could the have a set of blocks that said IF (Market Properties:Current Price) > (HighestClosePrice) (or open price) then BUY . Of course you would need a starting trade to start the process off.

          Depending on what market conditions you want to reset the process you could build another set of blocks that would set (HighestClosePrice) to 0 and restart the process.

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

          Online Users

          D
          V
          O

          13
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors