Page 1 of 1

Breakeven line indicator

PostPosted: Wed Feb 13, 2019 11:35 am
by 7510109079
Please could the attached indicator be modified so that each line has its own style (colour, line style, thickness)

BreakEven Line.lua
(6 KiB) Downloaded 360 times



Original post
viewtopic.php?f=28&t=61403&p=122644&hilit=breakeven#p122644

many thx

Re: Breakeven line indicator

PostPosted: Thu Feb 14, 2019 9:23 am
by Apprentice
Your request is added to the development list under Id Number 4477

Re: Breakeven line indicator

PostPosted: Thu Feb 14, 2019 2:03 pm
by 7510109079
Actually, cancel this request. The Break-even line does not always draw in the right place> I think it needs to evaluate the Gross P/L (£/$/euro-account base currency) of positions rather than the pips

Re: Breakeven line indicator

PostPosted: Fri May 03, 2019 3:47 am
by 7510109079
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