Closed Thread
Results 1 to 3 of 3

help to backtest my trading signals

  1. #1
    Forum Contributor
    Join Date
    05-14-2007
    Location
    London
    MS-Off Ver
    office 365
    Posts
    118

    help to backtest my trading signals

    Hi this is my 1st post here and while i would say i have a reasonable grasp of excell i have struggled with this so if anyone can help i would apritiate it.

    I have a trading strategy (commodities gold, silver , wheat etc , forex) that i wish to back test using excell. My strategy produces buy or sell signals periodically and my data is ordered in data order so for eg my spread sheet might look like this

    gold
    A B C D E
    date open , close, signal, close position

    3/4/07 ,674.00 ,682.00 ,buy,
    4/4/07 682.00 685.00,
    5/4/07 685.00 683.00,
    6/4/07 683.00 688.04,
    7/4/07 688.04 687.34 sell
    8/4/07 687.43 683.22
    9/4/07 683.22 679.45 buy
    10/4/07 679.45 680.21

    etc

    what i would like to be able to do is work out the p/l of trading the system so for eg

    on 4/4/07 i buy at the open on 4/4/07 (signal generated on 3/4/07) at 682.00and close by sell at 687.43 on 8/4/07 after sell signal on the 7/4/07 for 5.43 profit , open new sell order at the same time on the 8/4/07 at 687.43 and close buy buying on 10/4/07 at 679.45 for profit of 7.89 and open new buy order on 10/4/07 at 679.45.

    Also i wish to test other ways to close the order which may not be just the opposite signal ie buy 4/4/07 and sell 8/4/07 from a seperate signal in another column called close position (E) which may be activated earlier than the reverse signal buy/sell which would say close if true and blank if not true
    This needs to be linked to the opening order ie in my eg above 4/4/07 buy
    and if not activated will be cancelled if the reverse order is activated ie if a the close position is not indicated between 4/4/07 and the 7/4/07 (when the sell signal is shown) then the close parameters will be cancelled and a new close set of parameters set ie when buy open order 4/4/7 is given then the close poition paramaeters are set for that order, once a sell order is given a new set of close position parameters are set. If a position is clossed due to a close position signal then the p/l is calculated from this point rather than in the eg from the buy - sell diff

    hope this makes sense and hope someone can help

  2. #2
    Registered User
    Join Date
    06-20-2014
    Location
    indore
    MS-Off Ver
    2007
    Posts
    2

    Re: help to backtest my trading signals

    Dear censura
    I have gone through your post, in which you are considering open and close of the silver. Is it possible to take into account of Day's high and low also
    May i know what is the logic on which Excel is generating Buy or Sell signal

    Please mail me your excel if possible at ...
    Last edited by Fotis1991; 06-20-2014 at 03:43 AM.

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: help to backtest my trading signals

    What's the meaning of posting in a 7 years old thread??!!

    Thread closed.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

Closed 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