+ Reply to Thread
Results 1 to 4 of 4

Profit/loss targets

  1. #1
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Profit/loss targets

    Hi, I need some help!

    I'm looking at tick data of stock prices

    I have, date, open, high/low, high/low, close

    3rd (C) and 4th (D) column (high or low) are either high or low. Meaning since this is tick, in column C and D there is a value for either a high or low. If the low came first then column C will have that value.. And the high will be in column D.

    Then I have profit targets and stop loss target. I'm trying to come up with a logic that will tell me if my profit target was hit first or if my profit target was hit first.

    Let's say if column C had the high first and my profit target was less than the high. Then that means my profit target was hit. Or if the low came first in column C and my stop loss was larger than the low.. That means my stop loss was hit (since the price kept on going down.. Below my stoploss)

    Any thoughts?? Thx!

  2. #2
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Profit/loss targets

    Column f is where my profit target is.
    Column G is where my stop loss is.

    Also keep in mind that there can in instances where neither profit or stoploss were ever hit. Meaning profit target was higher than the high and stoploss was less than the low!!!

  3. #3
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Profit/loss targets

    date Open H,L H,L Close Profit target Stop loss
    8/4/1997 94.8 94.4 95.5 95.3 95.0 94.6
    8/5/1997 95.1 94.9062 95.7 95.3 95.3 94.9035
    8/6/1997 95.4 95.1 96.5 96.1 95.6 95.2
    8/7/1997 96.5 96.6 95.1 95.2 96.7 96.3

    Any idea? I'm stuck! Really what I need is.. which ever (profit target or stoploss) intersects column C or D first
    Last edited by calhawk01; 01-11-2013 at 03:45 PM.

  4. #4
    Registered User
    Join Date
    08-07-2011
    Location
    america
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Profit/loss targets

    this is what i have.. but it doesnt work properly

    =+IF(AND(F2<=MAX(C2:D2),G2>MIN(C2:D2)),F2/B2-1,IF(G2<=MIN(C2:D2),G2/B2-1,0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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