To clarify on the current behavior of the algorithm: The break even is set as soon as the trade turns profitable, so once it crosses the spread. I need it to wait 40 pips! Hope you can help!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi All,
I've been going round in circles all day trying to figure this one out, so it is time to consult the blessed Forum masters.
I have a break even function that is called when a position is open, but it's not functioning correctly.
Here is the function code, all variables used are globals (bad practice I know, apologies for the insult to the forum).
StopBuffer is set by: ( StopBuffer = 400 * Point; ) in the Init funtion.
Any advice will be more than welcome!