Trade is shown in backtest Price chart but not Equity Curve

Forums ProRealTime English forum ProRealTime platform support Trade is shown in backtest Price chart but not Equity Curve

Viewing 15 posts - 1 through 15 (of 23 total)
  • #142730

    I was alerted to this by a live trade that failed. When I went to backtest this trade to see what went wrong I noticed that it is shown on the Price graph, but not in the Equity Curve at the top, and not in the Detailed Report, as you can see in the screenshots.

    The first screenshot shows the bigger picture going back to 29 April. You’ll see a number of trades on the Price chart that match those in the Detailed Report. However, the final trade (where the cursor is) on the Price chart, on 25 August, isn’t shown in the  Closed Positions List and isn’t shown in the Equity chart above the Price chart.

    The second screenshot shows this trade zoomed in. Again, you can see it on the Price chart, but not elsewhere.

    I am running this live, and the trade failed as I show in the third screenshot – this matches the Price chart in backtesting, but this time the Equity chart shows it losing.

    I am worried that the backtest Closed Position List doesn’t show all the trades, and that some could be failing but I wouldn’t see them unless I checked all the graphed trades against the Closed Position List.

    Could you please shed some light on this?

    Thanks.

    #142753

    May not be relevant, but what spread value did you set in the backtest engine?

    #142757

    isn’t shown in the  Closed Positions List

    Is it shown in the Orders List or the Cancelled / Rejected List>

    #142759

    Thanks for the response, GraHal. In reply:

    It’s not in the orders list, attached. Do I have a Cancelled / Rejected list for backtesting?

    Spread is 2pts, although if I untick the box I get the same problem, just with a slightly better total in the Equity Curve – attached.

    #142765

    Do I have a Cancelled / Rejected list for backtesting?

    No … me getting confused, one eye on the TV again! 🙂

    #142766

    Even if the 7th / invisible order was a 0 / zero bars trade (open and close in same bar) then it should still show in the Closed Trades list … very strange!

    #142813

    There is something odd as your backtest has an end date on 27th April, while the last order is opened and closed the 29th! Do you confirm?

    #142820

    I see bt ending on 27 Aug and the trade opened on 25 Aug.

    #142826

    Nicholas – I read it that backtesting in screenshots 1 and 2 is from 19 April – 27 August. The trades are from 29 April – 5 June.

    #142834

    Ok sorry, i wrongly read the backtest end date.

    I can’t replicate without the code and see what’s going on on that particular system. In that case, I suggest you send a technical report through the platform and wait for an answer.

     

    #142835

    I have just tried backtesting this again, changing only the number of units: 100,000, then 10,000, then 1,000 units. I attach the screenshots from the results. They are anomalous.

    There are several more trades in July and August that show when backtested with smaller number of units than 100,000, but not when tested with 100,000 units. Compare the screenshot for 10,000 with the originally posted one for 100,000. Even with 10,000 units the 25 August trade isn’t shown in the Equity Curve and Closed Position list, although it is on the Price chart. I also don’t understand why it’s shown with red and green markers, when the other trades are in blue and yellow.

    This 25 August trade is shown correctly when 5,000 units are displayed, and now with blue and yellow markers like the other trades.

     

    #142840

    Nicholas, I was writing my last post as you posted. I have just submitted a report as you suggest. Thanks.

    #142842

    Well … keep us update!

    #142849

    I also don’t understand why it’s shown with red and green markers, when the other trades are in blue and yellow.

    Usually that would be red and green markers attributable to one System and blue and yellow markers attributable to another system … so might you have 2 systems running?

    #142882

    Red and green arrows are trades that have been opened and closed by strategies running live. Blue and yellow are those of a back test.

    2 users thanked author for this post.
Viewing 15 posts - 1 through 15 (of 23 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login