Close trade once reaches daily profit
-
Hi Genius Guys,
My strategy demands me to place 10 pips sl and 50 pips tp, but actually i need 5 pips and close trades, or if i wish to restart modifying lot size it should stop once it gives me 5 pips, let me upload screen shot of my set, since i am using pending orders both and sell on tick, i had to place “position created - delete pending, pls help me to close the trade once it reaches 5 pips, some times i loose 20 pips and then next trade shows up 25 pips i want to grab just those 5 pips. thx in advance

-
@samcare2001 You need to do this:

-
First of all apologies for raising the same issue at various places since i was not sure, and thx a lot for your solution let me try, where should i connect “ for each trade”? do i need to connect this series of blocks to my existing blocks which i have posted earlier: thx
-
@samcare2001 You do not need to connect that bloc anywhere. This block tree needs to be independent from any other.
-
@l-andorrà thx sir

-
[0_1674870890129_slbuysellpips 5 50 tp 3.mq5](Uploading 100%)
sharing you the source file, the tree isnt working, as i told earlier my primary strategy has one buy and one sell pending order, either of them executes the other pending order gets deactivated which i have done in trade function, now the active buy or sell trade has 10 pips sl and 50 pips profit, but i want only 5 pips even if after 3 consecutive losses of 3 trades 30 pips if i get 35 pips on 4th trade i just need that 5 pips and close the session automatically untill i restart, i would appreciate your help, you are one of the most efficient and disciplined mentor i have seen, thx sir
-
@samcare2001 and so that it closes all the operations in profits of usd.. 10 operations between buys and sells when they all reach 1 usd or more... how would it be?
-
@samcare2001 Can you please share the link to the latest version of the bot?
-
@l-andorrà [0_1675035799519_Ln Ny Slbuysell 10 50.mq5](Uploading 100%)
-
@samcare2001 This is the way to upload a project:

-
@l-andorrà thx sir, didnt know that. i will share thx
-
-
@samcare2001 I see no structure is used to close trades in profit as you requested. Is that the last version of the bot?
-
@l-andorrà yes this is the last version, there are buy and sell pending order, so once one is activated other gets closed that i have done “on trade” and the active one close either on PT or sl, immediately after that two new pending appears. thx
-
@samcare2001 Then I'm afraid I don't fully understand what you need. You mentioned you need the EA to count some profit or loss to move one. My structure should work fine there. Is that what you need?
-
Sir, i need your help on another query, i want to open buy&sell position together, both will have tp but no sl, in that case my one leg will remain open, but i want to initiate another buy&sell together on the closed leg and the process will continue, pls share me the structure. lots of love respect and regards
-
What do you exactly mean by 'one leg'? If I understand it correctly you want a new buy and sell every time any trade hits its TP, maybe?
-
yes want a new buy sell on the closed position. thx
-
@samcare2001 Then you can do this on the 'on trade' tab:

In this example, a sell will be open as soon as a buy hit the SL.
-
thsnk you sir