Hello
I would like to request an indicator which is an average of the Gross P/L...
It means it would only appear if there are positions open
Some calculations explained here
http://www.fxcodebase.com/documents/Ind ... _math.html
When you open multiple positions, there is visible a "Net Short" or "Net Long" as a horizontal line on the chart. This is the price of breakeven for all positions in that direction.
I want the average to be drawn from this as the first value, and then consider how the price moves afterward against or in favour of your positions and adjust accordingly
I would like to request an average line of Gross P/L
But this line should be drawn on the chart just as price, not in its own window
To show average gross profit for individual symbol (which it is applied on) and separate long/short positions
So the thing is a gross p/l is just a simple value + if profit and - if loss, but I want it to appear on chart as a average...
It should also be inverted (drawn below net short horizontal line) if selling and price goes down.
Drawn above net long horizontal line if buying and price goes up
Hope it makes sense. I have provided a very silly screenshot.
Red circles are example short positions
Green line is net short profit
Blue line should be the average... of course in my example it is not drawn very correctly and looks like it is in real time, but the average should lag by x periods specified by user of course.
If it is no good I will provide further clarification with real chart.