I am writing an EA and I'm having many problems to break even put in my code.
for example: Open position for long and the price falls. After 30pips loss opens another position long. If you continue to price short, opens the last position and takeprofit long on average would be positive.
I wanted to put break even in all positions.
Can someone help me?
Sorry for poor English