+ Reply to Thread
Results 1 to 7 of 7

Finding the pip profit of a forex trade

  1. #1
    Registered User
    Join Date
    06-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    23

    Finding the pip profit of a forex trade

    Hello all! I am very new to the forum and even newer to excel macros and VBA. What I am trying to do is have excel calculate the amount of pip profit of a trade in forex. For instance if I was making a short or sell trade and the price was 1.3000 and price moved to 1.2950 then that would equal 50 pips profit so I just want this calculated automatically by excel. I will add the entry and exit prices manually. Also the formula has to know if it's minus profit. So with the same numbers if I was making a long or buy trade and it went from 1.3000 to 1.2950 then it should show this as -50 pips.
    My cells are as follows:

    B15 long or Short
    B16 Entry Price
    B20 Exit Price
    B21 Profit/Loss in pips

    Hopefully I explained this well enough and I appreciate the help. Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Finding the pip profit of a forex trade

    Try this and see if it works...not tested

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-08-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: Finding the pip profit of a forex trade

    Thanks for the response! After putting the formula in it says, "You have entered to many argument for this function".

  4. #4
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Finding the pip profit of a forex trade

    =IF(B15="Long", (B20-B16)*10000, IF(B15="Short", (B20-B16)*-10000, ""))

    Missing another IF

  5. #5
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Finding the pip profit of a forex trade

    Try

    =(B20-B16)*LOOKUP(B15,{"Long","Short"},{1,-1})*10000
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  6. #6
    Registered User
    Join Date
    03-25-2020
    Location
    MALDIVES
    MS-Off Ver
    2013
    Posts
    2

    Re: Finding the pip profit of a forex trade

    hi can you please modify the formula in the last comment which can used as both formula in one,fo example shown earlier is

    1.3000 to 1.2950 then it should show this as -50 pips <<<<< USD pair
    1.3000 and price moved to 1.2950 then that would equal 50
    AUDCAD
    AUDCHF
    AUDNZD
    AUDUSD
    CADCHF
    EURAUD
    I'LL ADD THE REST

    198.78 to 198.77 than it should show -10 pips <<<< Yen pair
    198.78 198.88 thanit shou show 10 pips
    AUDJPY
    CADJPY
    CHFJPY
    EURJPY
    GBPJPY
    NZDJPY
    USDJPY

    is there any way that i can use this formula with Yen pairs and usd pair like by selecting the pair results calculate by selection of the pair to the same box

    =(B20-B16)*LOOKUP(B15,{"Long","Short"},{1,-1})*10000 OR =(B20-B16)*LOOKUP(B15,{"Long","Short"},{1,-1})*100 = PIPS

    THANKS IN ADVANCE

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding the pip profit of a forex trade

    Administrative Note:

    Hello TYTWEN. Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Looking forward to seeing your threads.
    Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1