by 7510109079 » Fri May 03, 2019 3:47 am
Having looked at the behaviour of the indicator further, it looks like the breakeven line is calculated to always plot in between the net long/short lines. This is fine when you have short positions above longs but does not work when your longs sit above your shorts as the supposed B/E line is placed in a negative equity position rather than a B/E equity position.
Can this be corrected?? It will need some intelligent mathematical calculations to handle multiple positions with different lot sizes. It will also have to take the equity of the pair's positions into account, not just the pip values. I have attached the code of a similar MT4 indicator which may assist with the type of calculations needed.
Also the Long Positions and short positions lines are superfluous as they show the net long and net short positions respectively and there is now internal Marketscope functionality provided for showing such lines.
thx in advance
- Attachments
-
- me_Breakeven_Line v2.4.mq4
- (14.33 KiB) Downloaded 328 times