Trailing take profit after take profit is hit
-
is there a way to do this?, I've tried doing pips from profit and then changing the stop loss and take profit, but it's as efficient and it seems to work weird. is there a way to not take profit once take profit hits, but put like a 5% of tp under the tp starting stop loss and then trail it?
using trailling stop also doesn't work as wanted because it takes profit once tp is hit..
-
Trailing take profit is like trailing stop loss, but opposite. This is just moving TP (or SL) from time to time, and when TP (or SL) is hit - the job is done
You can't reach TP (or SL) and not close the trade, after all this is the idea of those stops - to close the trade. There is no other reason for them to exist.Try to explain what you want to do in a way that is logical

-
um yea sorry my english and explanation was very bad.
I have a take profit specified on my buy/sell orders, but I'd like that once they are hit or when the price moves to that level a trailing stop loss of something like 5-10 pips is placed then. so if the price goes 20 pips up before going down if it was a big fast move I'd have 10-15 pips more of profit. also risking 5-10 pips that way but yea.
I have 4 different sell orders and 4 different buy orders. all have their own variable as tp that is changed with custom code.
so I guess putting them in groups from 1-8 and then make a block that checks which order is active, then check if price is reaching the value I need?
that's seems like adding a lot of blocks and will slow down the testing process by a lot, it's already slow

so I was asking if there's a more efficient way of doing this
-
Yes, adding lots of blocks is generally a bad practice, but it is typical for people who are new to programming. Well, this is not exactly programming, but it also is in some way.
Do you want to say that you have pending orders, which are triggered and turned into running trades, and you want to do Trailing Stop Loss on them?
-
I'm not really new to programming, which is why I don't want to make loads of blocks. but I am new to mql coding
yes once a condition is met a pending order is placed. and I don't really want a trailing stop immediately but only once it's 5-10 pips away from the tp, or better yet once it hits my desired tp. but since I have 8 different tps it would be a nightmare adding conditions for each. hence why I'm asking if there's an easier way.
I have tried pips away from take profit 5 then move the tp by 15 pips up and move the sl 10 pips under.
but I got weird behavior from that that. will try again tho as I've made some changes to the ea since then.
if there's no other way that comes easy to mind than nvm
was just checking ^^ -
So, there is a block Loop (pass n times) somewhere that can activate its output multiple times. Pretty much what "for" does, but the "i" variable lives only inside the block. Well, variables can be created and manipulate outside the blocks, so that iteration variable can be added.
So your TP that you say that it is hit is some imaginary level where something should happen, not the real TP line?