On Trade Close - Can we isolate partially close from full
-
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
-
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. -
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/DP2rSHFubYou 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
-
Ahaaa! Now it should be ok

-
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
-
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
