Back testing profitability query

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #265665 quote
    Tidd83Tidd83
    Participant
    Junior

    Hi all,


    First post here to the forum. I was curious what target profit you look for that would be considered healthy on a backtest with a decent equity curve before running the strategy as a live demo. I am running the demo account with a 200k unit backtest on the 1min chart so approx 6.5 months. I understand this may not be as long as many but markets fluctuate and change so I’m comfortable with this historic period whilst comparing against the future.


    Thanks

    #265667 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    You may choose a fixed SL and TP, irregardless of the current market behavior, or you may set your SL to, say, the prior bar’s low or the lowest low among the last N bard (Long example).

    Or you may choose to set ot according to Fibonacci retarcements and pullbacks or whatever other way you may prefer.

    Even your TP can either be fixed or a multiplier of your SL, or a Fibonacci extension, a reverse crossover etc..

    I don’t think there’s a prevailing correct method. I suggest not to exceed your risk aversion and manage both your SL snd TP according to your Capital and never adjust it to the way a trade is performing, but let it be hit. If your strategy is good, it will have the time to recover one or more losses, with no hurry.

    t will have the time to recover one or more losses, with no hurry.


    Iván González thanked this post
    #265669 quote
    Tidd83Tidd83
    Participant
    Junior

    Hi Robert, thanks for the reply.


    I wasn’t referring to specific trades more on the terms of a full back test i.e on a £10k demo account a return of 20% for example from a backtest on a 6 month basis would be considered excellent, mediocre?

    #265670 quote
    JSJS
    Participant
    Master

    Hi,

    The “problem” with your question is that you’re focusing solely on returns…

    Judging a trading strategy based on returns alone is a bad idea…

    There are several other factors that are at least as important, if not more so, such as:

    • What is the maximum drawdown?
    • How much risk is being taken to achieve those returns?
    • How robust is the strategy across different market conditions?
    • Have spread, commissions and overnight financing costs been taken into account?
    • How many trades were executed during the backtest period?
    • Are you trading CFDs with leverage?


    If I saw a 20% return over six months, my first reaction would be, “that’s a very nice return!”…

    However, without answering the other questions first, the return itself tells you very little about the actual quality of the trading strategy…

    robertogozzi and Iván González thanked this post
    #265679 quote
    Tidd83Tidd83
    Participant
    Junior

    Hi JS,


    Thanks for taking the time to reply, I understand your points fully – I guess my question was short due to focussing on a single point however to answer some of your questions please see below. Whilst I’m new to script writing I’m not new to the markets so I fully appreciate what you ask hence why I stated my equity curve remained healthy.


    Total trade max draw down was 1.3%

    R/R 1:4

    No overnight trades all are short term within hours and spread factored in

    Over 6.5 months – total of 167 trades

    Profit rate on equity +30%


    Thanks.

    #265680 quote
    JSJS
    Participant
    Master

    Hi,

    A 30% return with a maximum drawdown of just 1.3% certainly looks impressive…

    However, I would be particularly interested in understanding how the maximum drawdown is calculated and whether the 1:4 risk/reward ratio refers to the average winning trade versus the average losing trade…

    Would it be possible to share the “Closed Positions Statistics” section from the “Detailed Report”…?

    So, we use the same calculation method…

    #265684 quote
    NicolasNicolas
    Keymaster
    Legend

    Hi, interesting topic. Did you optimize somehow “optimize” your entries to get those nice results? 🙂

    #265688 quote
    GraHalGraHal
    Participant
    Legend

    Love to see:

    1. Equity curve over the 6.5 months
    2. Positions shown in the next box under the equity curve.
    3. Price curve in the next box under Positions.
    #265692 quote
    Tidd83Tidd83
    Participant
    Junior

    Hi folks,


    Glad this is sparking interest as I welcome the discussion, please see attached – backtest has been renamed to generic “MySystem” for optimising only. I do however stand corrected on the max draw down, whilst the IRR is over 30% the draw down is 2.53% which should still be respectable? Think I have too many windows open.

    GraHal thanked this post
    pic2.png pic2.png pic1.png pic1.png
    #265693 quote
    GraHalGraHal
    Participant
    Legend

    Looks Good!

    Congrats, Gold Star!

    Keep us posted as to how it performs on real Live data?

    #265694 quote
    JSJS
    Participant
    Master

    First of all, the results look very good, perhaps even a little too good…

    One potential risk is that the strategy has been optimized over a relatively short period…

    If the parameters were selected based on precisely this period, the results may be overly optimistic…

    You could perform a walk-forward analysis, but perhaps an easier way to check the robustness of the strategy would be to see whether the results remain good when you make small changes to the parameters…

    Iván González and Tidd83 thanked this post
    #265697 quote
    NicolasNicolas
    Keymaster
    Legend

    Well done. Unless I’m mistaken, you haven’t specified the instrument and the spread used? Did you also check the box for tick-by-tick backtesting?

    Tidd83 thanked this post
    #265699 quote
    Tidd83Tidd83
    Participant
    Junior

    JS – you could be right with this and it was my concern however given it’s the first couple of scripts I had written it what prompted me to ask the question. My thought being that there should be enough margin to counter over optimisation and as a learning curve. I just didn’t want to waste 30-60 days of forward testing if as you said it looked too good.


    Nicolas, I currently have two strategies which should work in tandem. The above is against the DAX primarily focussing on momentum with the majority of the market open time being restricted to not trade. Spread is factored into the backtest and per tick also has been considered however the script is explicitly set to trigger on candle close.


    The other is against DOW with asymmetric trading with a risk to reward around 2:1 intended to capture more wins than losses, IRR is 12.3% with a drawdown of 0.71%


    I think since feedback is largely positive which I’d hoped I will kick off the forward test and feedback, if it’s a failure then I’ll learn in the next 30-60 days or so however at least you have informed me of key points to consider so I appreciate all of your input. Thank you.

    JS thanked this post
    #265701 quote
    NicolasNicolas
    Keymaster
    Legend

    Be careful, if you’ve optimized, you might have fallen into the trap of overfitting. With time units as small as 1 minute and considering the limitations of historical data, your settings could very well be tied to recent market activity and not very robust if fluctuations outside your optimization samples occur. Good luck anyway! 😉

    Tidd83 thanked this post
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Back testing profitability query


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Tidd83 @tidd83 Participant
Summary

This topic contains 13 replies,
has 5 voices, and was last updated by NicolasNicolas
2 weeks, 3 days ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/18/2026
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...