Random Trading

Discussion in 'Automated Trading' started by Loki45, May 19, 2010.

  1. Paul Rose

    Paul Rose

    Loki,

    If you are simulating (not really trading) just count your entry/exit price as the bid/ask midpoint (or last sale price) and re-run your simulation.

    If it evens out, then at least you know that bid/ask spread was the cause.

    But in real life you can't just out-wait the bid-ask spread, hopefully you have some actual insight guiding your actions :)
     
    #11     May 19, 2010
  2. LeeD

    LeeD

    This is a very good point. Perhaps you can run 2 systems taking exactly opposite trades.. and see if both of them loose at the same time.
     
    #12     May 19, 2010
  3. olias

    olias

    with enough of a sample, they should both lose.
     
    #13     May 19, 2010
  4. Loki45

    Loki45

    I think you are right. Because I already randomized the entry direction (long or short), there is no point in letting two strategies run with different entry directions.

    What I will try is to increase the average duration of a trade, and see if the loss is the same as with short-term trades, based on the same trade count.
     
    #14     May 19, 2010
  5. olias

    olias

    Ok, but as a mental exercise, think about what would happen if you simultaneously buy and sell the same contract. ...you won't be buying and selling at the same exact price. Your buy price will be at least one tic above your sell price, and that's in a liquid market. You are always giving up the spread. So over enough of a trade sample you get a negative expectancy for both strategies (because the entries are random). If your results show profit in one of the strategies, it just means you haven't done a large enough sample.
     
    #15     May 19, 2010
  6. edbar

    edbar

    Loki,

    A better / more legitimate test of the random trade generator program would be to enter randomly but exit only after either a 10% profit or a 10% loss. (or some other percent, as long as it is the same for the profit and loss).

    Then, over a long period of time, the results should be ~50-50, less the ask-bid spreads.

    Ed
     
    #16     May 20, 2010
  7. (1) What is the timeframe? Tick? 1 minute?

    (2) How many bars are you testing?

    (3) Have you tried moving your initial entry point to see if the results change a lot?
     
    #17     May 20, 2010
  8. Try out the same system on another 2 instruments.
    post results.
    I bet one of the instuments turns a small profit
     
    #18     May 20, 2010
  9. Paul Rose

    Paul Rose

    LOL - Now THAT made my morning - thanks! :) :) :)
     
    #20     May 20, 2010