• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 6:13pm
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 6:13pm
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Please make this Floating Drawdown indicator usable for intraday 10 replies

How to deal with big floating profit? 8 replies

Export Floating Profit/Loss to Excel? 2 replies

Why floating spread is better then fixed 22 replies

Max Floating DrawDown Indicator 6 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 4
Attachments: Locked floating profit indicator
Exit Attachments
Tags: Locked floating profit indicator
Cancel

Locked floating profit indicator

  • Post #1
  • Quote
  • First Post: Mar 13, 2020 11:22am Mar 13, 2020 11:22am
  •  spyderman
  • Joined Nov 2010 | Status: Snaggin' Some Pips | 2,157 Posts
Hey all,

I'm looking for an indicator (or ea if required) that would display all the open positions in a given pair and also indicate the running profit that has been "locked" in by stoploss. Does anyone know of one out there?

Thanks
  • Post #2
  • Quote
  • Mar 16, 2020 1:32pm Mar 16, 2020 1:32pm
  •  paulselvan
  • Joined Jul 2013 | Status: Member | 318 Posts
hello,
to program it ,
1)What is your deposit currency
2)Running profit calculation is very different from forex to indices (or other instruments).Better you fix which one you want to check
3)If order is opened more than one day ,the swap must be take in account: the problem it changes many times !So which swap (average, the last one,...) to choose
if you answer these i can try to do it
 
 
  • Post #3
  • Quote
  • Mar 16, 2020 1:37pm Mar 16, 2020 1:37pm
  •  spyderman
  • Joined Nov 2010 | Status: Snaggin' Some Pips | 2,157 Posts
Quoting paulselvan
Disliked
hello, to program it , 1)What is your deposit currency 2)Running profit calculation is very different from forex to indices (or other instruments).Better you fix which one you want to check 3)If order is opened more than one day ,the swap must be take in account: the problem it changes many times !So which swap (average, the last one,...) to choose if you answer these i can try to do it
Ignored
Thank-you for your response.
Currency is US dollar
I am interested in Forex only
I believe the trade terminal in MT4 keeps a running total on swap for each position, so I would say to just have it add those together

Thanks
 
 
  • Post #4
  • Quote
  • Mar 16, 2020 2:30pm Mar 16, 2020 2:30pm
  •  paulselvan
  • Joined Jul 2013 | Status: Member | 318 Posts
Quoting spyderman
Disliked
{quote} I am interested in Forex only
Ignored
i'll limit for the major ones
Quote
Disliked
I believe the trade terminal in MT4 keeps a running total on swap for each position, so I would say to just have it add those together Thanks
that's right it's sum of
 
 
  • Post #5
  • Quote
  • Mar 17, 2020 9:38am Mar 17, 2020 9:38am
  •  AKCodingEye
  • Joined Sep 2013 | Status: Such a Silly Game It is | 168 Posts
I know you asked for locked in profit. It shows all opened trade pairs pips/Money/Percentage (thats i need to track my daily performance). Sharing it if you would like to do some modification as it's very near to what i ask for. Its INDICATOR
Attached File(s)
File Type: mq4 Summary.mq4   21 KB | 271 downloads
Whats get measured get improved
 
 
  • Post #6
  • Quote
  • Mar 17, 2020 9:55am Mar 17, 2020 9:55am
  •  spyderman
  • Joined Nov 2010 | Status: Snaggin' Some Pips | 2,157 Posts
Quoting AKCodingEye
Disliked
I know you asked for locked in profit. It shows all opened trade pairs pips/Money/Percentage (thats i need to track my daily performance). Sharing it if you would like to do some modification as it's very near to what i ask for. Its INDICATOR {file}
Ignored

Thank you. I'll take a look
 
 
  • Post #7
  • Quote
  • Edited 4:54pm Mar 17, 2020 4:25pm | Edited 4:54pm
  •  paulselvan
  • Joined Jul 2013 | Status: Member | 318 Posts
Here is EA theoretical ok
But
1)As the program converts in deposit currency, check if "Sum of SL P&L" in Experts tag is right or not for all majors.
2)Have to wait more than one day to know if swaps are ok

Attached File(s)
File Type: mq4 ff_runningPL_spyderman.mq4   3 KB | 195 downloads
 
 
  • Post #8
  • Quote
  • Mar 17, 2020 5:36pm Mar 17, 2020 5:36pm
  •  spyderman
  • Joined Nov 2010 | Status: Snaggin' Some Pips | 2,157 Posts
Quoting paulselvan
Disliked
Here is EA theoretical ok But 1)As the program converts in deposit currency, check if "Sum of SL P&L" in Experts tag is right or not for all majors. 2)Have to wait more than one day to know if swaps are ok {file}
Ignored

So I placed EA on chart. Nothing happened or showed on chart but experts journal show things are computing. Not sure if there's supposed to be any output?

Thanks for your efforts
 
 
  • Post #9
  • Quote
  • Edited 4:11am Mar 18, 2020 3:58am | Edited 4:11am
  •  paulselvan
  • Joined Jul 2013 | Status: Member | 318 Posts
Here is how simply outputs can be read :
1)Here is Trade tag where there are 2 usdcad sell trades.
Both have different lots.(0.03 and 1)
Both have also different SL.
Attached Image (click to enlarge)
Click to Enlarge

Name: trades.png
Size: 19 KB




2)Here is Experts tag
>You can see in Trade 0 the gap between openPrice(1.42288) and SL(1.42700) is -41.2 pips : it's your 'locked' SL.Remarks,which is also equal to -289.70$ P&L.

>And the "Sum of SL P&L" sums up Trade0 SL + Trade1 SL in dollars (that is what you call 'running profits')
Attached Image (click to enlarge)
Click to Enlarge

Name: Experts_tag.png
Size: 15 KB

-------------------------------------------------------------------------------------------
Of course this program graphics should be improved , but better wait first if you can see what you want
 
 
  • Post #10
  • Quote
  • Apr 15, 2020 9:45am Apr 15, 2020 9:45am
  •  spyderman
  • Joined Nov 2010 | Status: Snaggin' Some Pips | 2,157 Posts
Thanks all for you help.

I found a nice indicator on MQL5 for a reasonable price that did what I wanted so opted for that route.

Appreciate the efforts.
 
 
  • Post #11
  • Quote
  • Last Post: Apr 15, 2020 11:38am Apr 15, 2020 11:38am
  •  paulselvan
  • Joined Jul 2013 | Status: Member | 318 Posts
all the best
 
 
  • Platform Tech
  • /
  • Locked floating profit indicator
  • Reply to Thread
0 traders viewing now
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023