FXCM Forex Trading

Inverted average of Gross P/L

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Inverted average of Gross P/L

Postby Cactus » Thu Oct 12, 2017 7:42 pm

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.
Never chase the money, let the money come to me
User avatar
FXCodeBase: Graduate
Posts: 204
Joined: Fri Feb 19, 2016 11:46 am
Location: Errywhere

Re: Inverted average of Gross P/L

Postby Apprentice » Fri Oct 13, 2017 7:41 am

Your request is added to the development list under Id Number 3923
User avatar
FXCodeBase: Confirmed User
Posts: 17130
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 7 guests