The breakeven code is copied from mptm. mptm is the first ea I coded and the BE function was the first of the functions I added. I knew little about coding at the time.
Looking at the code, I see I had got the Bid and the Ask the wrong way around. I am not sure if this is causing the BE function to work incorrectly - perhaps it means that the spread causes BE to be too close to the market.
I have edited this and put Bid/Ask the correct way around. See if this makes any difference. Post 1.
Looking at the code, I see I had got the Bid and the Ask the wrong way around. I am not sure if this is causing the BE function to work incorrectly - perhaps it means that the spread causes BE to be too close to the market.
I have edited this and put Bid/Ask the correct way around. See if this makes any difference. Post 1.