Help with take profit options needed...
-
Hi guys, I'm new here. Programming my first Forex EA and all good so far...until I hit the actual trade I want to make. So, what I want is the following: In a buy setup, I want the EA to calculate the distance between market price and the low of the last 5 candles. The EA should open the trade with the position size calculated by that distance, so it matches 1% of balance. I want the same distance for the take profit. Now comes the catch...I don't want a stop loss set. I haven't figured out how to get that profit target and the position size without actually having the stop loss. Does somebody know what I can do? Any help would greatly be appreciated.
-
@sirluk getting the distance is simple high-low will give you that, place in a variable then modify to give you pips, this can be used for SL and position size, then you can modify stops to move it completely out of the way, I don't know how to not have it placed, then have a condition to close trades once condition's met, I do think selecting LOT without SL can be done I have just never done it.
-
@jstap that worked good, thanks!
-
Can you share a link to an example of this? Thank you.