I'm looking to code a conditional exit where if the unrealized profit hits an X number to go ahead and take it even though my other exits are hit otherwise stay in the trade and let the other exit signals take care of it.
I'm NOT talking about a profit target (setprofittarget()) because I don't always want to look for 10 ticks or whatever. I think this is too absolute. I want it to be more of "hey, this trade has already hit a good profit #, lets just close it out"
Any suggestions on how to do this?
Comment