Neither broker fees nor spread nor start or end dates of a backtest are saved !!

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #155039 quote
    XORANDNOT
    Participant
    Senior

    When I enter broker fees and spread and start and end dates into the right hand window part of a backtest in v11, it looks like image 1.

    After the start of the backtest, all of these are forgotten (spread, broker fees, start and end date) and it looks like image 2   !!!

    It means that broker fees, spread and start and end dates will not be right when you run the backtest a second time or when you duplicate it ! And they can never be saved.

    Has really noone realized this since the days of the beta version ? Should be corrected as soon as possible, I think.

    I reported this to PRT for the start and end dates already and I will do so for spread and broker fees as well.

    It seems that everything in this part of the window is never saved, but always forgotten after the start of a backtest.

    image1.png image1.png image2.png image2.png
    #155046 quote
    Roger
    Participant
    Veteran

    Same problems on my side on v11.1

    #155059 quote
    Vonasi
    Moderator
    Master

    I have noticed the same for start dates and this has been reported to PRT I believe. I have not noticed the same for spread which I always set in every strategy. I have not played with broker fees or end dates so cannot comment on these.

    Hopefully PRT are fixing all these back testing bugs soon (including incorrectly calculated drawdown and run up in the optimizing window and the equity curve not representing the results at all when accumulating positions and partial closure are used) but perhaps Christmas and a rather annoying pandemic will slow things a little on the bug fix front.

    A temporary fix is to enclose your code in a date conditioned IF THEN statement and to make a broker fee calculation within the code whenever a position is opened or closed and graph strategyprofit – broker fees when you are back testing.

    #155096 quote
    Monobrow
    Participant
    Senior

    broker fee calculation

    Are you able to supply us some sample code for this please? Sounds very worrying as spreads really screw up backtesting results.

    #155109 quote
    TempusFugit
    Participant
    Veteran

    Same problem for me with spreads in v11.1. The change in backtest dates happened to me already in the previous version ocasionally

    #155115 quote
    Vonasi
    Moderator
    Master

    Here you go Monobrow:

    More accurate equity curve with overnight fees deducted

    Monobrow thanked this post
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Neither broker fees nor spread nor start or end dates of a backtest are saved !!


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
XORANDNOT @xorandnot Participant
Summary

This topic contains 5 replies,
has 5 voices, and was last updated by Vonasi
5 years, 1 month ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 12/23/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...