How to close trades on percentage ?
-
Hi,
Please anyone helps which block to be used if profit percentage reach a level and all trades get closed, I know the check unrealised p/l block -
I don't think there is a block that can help you to achieve this.
As a workaround, I would suggest you to create a constant and two variables in order to convert the target percentage into money.
For example, if you want to close all positions when 1% gain is being reached, the formula would be: 1/100*Account Balance;
and then use a condition block to compare the result with your equity. If they are equal, close all positions.
-
@tpt Thank you for the efforts you have made, problem solved.
Further if I want to print this profit percentage achieved on chart in terms daily, weekly or total. If I use comment block I am unable to find percentage mode in this block it is having average mode and other 3 only, -
@forexbob-0 Do this work if use Bucket of closed trades block, Do this help in printing profit percentage ?
-
Did the suggestion work for you @forexbob-0
-
@drewliedadeuce yeah that worked, I make some changes to it as per my flexibility, but printing profit achieved on daily, weekly and monthly is still pending and I left this task for now.
-
@forexbob-0 Ok thanks