Recent content by rsmith911

  1. R

    Backtesting puzzle

    Brilliant thanks guys, I used F12 to step along in the visualizer and I see you are right and my orders aren't being opened until the ask hits my order price. So as you say the bid is already below my opening price and therefore closer to the stop :clap: Sorry if I am being a bit dim but can...
  2. R

    Backtesting puzzle

    Thanks, yes that explains it for the market orders. But if I go back to my original code and place limit orders then the entry price = the bid price so if I close my order immediately I make neither a loss or a profit. So in this case the spread should have no effect right? If I place my...
  3. R

    Backtesting puzzle

    Well I just simplified things by altering my program to create market orders, then get the price of the order opened and set the TP/SL and equal distance either side of it. Then I wait for the order to close and increment/decrement a counter depending on whether the order closed at a higher or...
  4. R

    Backtesting puzzle

    I am using an ECN demo account and for limit orders so I don't pay any spread on a buy limt - take profit order (just the commission which is charged later). However on the stop loss there is slippage of course. However, I am only interested in the number of orders that hit either the stop or...
  5. R

    Backtesting puzzle

    Well since they are limit orders I don't pay the spread. I wonder if this is the reason - for the buy limit order to get hit the price has to fall by 1 point from the current bid. So if the price is already falling maybe that predisposes it to making it more likely to continue to fall and hit...
  6. R

    Backtesting puzzle

    I was getting some strange results with MT4 backtesting so I created a simple program that just places orders with equal stops and take profit limits. I have several years of 1 minute data downloaded so I ran the program over that in strategy tester. The program creates buy limit orders and I...
  7. R

    Limit orders

    This is a basic question (I use ECN demo accounts) since I don't understand exactly how orders are filled etc. If I place a buy limit order 1 point below the bid price and then the price moves down I now have the best bid (I can see it change). If a market sell order now comes in then my order...
Top