fxDreema

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

    On Trade Close - Can we isolate partially close from full

    Questions & Answers
    2
    6
    1142
    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.
    • K
      kroghd last edited by

      Hi,

      I have a situation where I need to flag that I have partially closed a trade & I reset the partial close flag after the trade is fully closed using the on trade - Trade Closed.

      The problem is the on trade - Trade Closed event fires even for partial close - which is a problem for my flag - I only need it to reset on full close.

      Is there any way the on trade events can treat partial & full close different - perhaps a filter in drop down for on trade Trade Close block to handle a new partial close option & change existing close option so it will not pass the block if it trade was only partially closed?

      Thanks

      -David

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

        I added this option. But if you work with multiple trades at a time, 1 flag will not work correctly. So I added another option for the ticket number: http://prntscr.com/3qgq2e
        Also for the "(on trade)..." part in Condition. The parent ticket is the one that belongs to the trade before it was partially closed, or this is the regular ticket number when it was still untouched.

        1 Reply Last reply Reply Quote 0
        • K
          kroghd last edited by

          Hi,

          Thanks for your improvements - I checked but seem to be having problems getting it to work as I'd expect - please see a project I have shared.
          https://fxdreema.com/shared/DP2rSHFub

          You will see I am trying to detect using the On Trade with Filter for Partially Closed or Fully Closed

          What I need to do is know when a trade is fully closed or partially closed & do different things depending on this both via the On Tick & On Trade tabs.

          You will see from the sample the yellow arrow is drawn correctly for partial close but also for when a partial trade is fully closed.

          In my example I would expect a blue arrow to draw when any trade is fully closed.

          Thanks

          -David

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

            Ahaaa! Now it should be ok 🙂

            1 Reply Last reply Reply Quote 0
            • K
              kroghd last edited by

              I have checked - the on trade blocks seem to work now - one yellow tick then one yellow tick.

              But when I use the condition block #18 on my sample I get yellow tick for partial & yellow tick for full close.

              I think there might be an issue with the condition check via on trade?

              https://fxdreema.com/shared/wRR6igKD

              Thanks

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

                Well, the closed trade has "parent" trade even if you close it for the last time. To resolve the problem I added function to get the "child" ticket, so now there are 2 checks. I think purple blocks are enough 🙂

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

                Online Users

                D

                9
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors