Backtest results FAQ

Backtest results will update or repaint thru the day while the current candle is being built up. Below are the scenarios that should be considered while validating results from the backtest history.

Example 1 (Single timeframe – Daily candles)

A scan running on a daily candle, the results shown at 10am will differ as compared to the results shown at 12pm and so on.. this is similar to how the indicators/candle would look for the current day on a candlestick chart i.e it will continue to change for the day until the market is closed.

Example 2 (Multiple timeframes – 5 minute and Daily candle)

The backtest history for such a scan would shown a bar for every 5 minutes(lowest timeframe in the scan), the backtest history would spread the daily candle for every 5 minutes i.e the values current spanshot of the daily candles is spread across all 5 minute bars in a day causing the results to change as the current version/snapshot of the daily candle updates.

Eg: If you view the backtest history on such a scan at 12pm and then re-check it at 3pm, the backtest bars since market opening i.e 9:15am, 9:20am and so on.. may show changed/updated results as the run at 3pm saw a newer version of the daily candle as of 3pm and backtest is generated on the fly(i.e the time you view the scan) unlike Alerts. In such a case to validate the true stocks present in a scan at 9:30am, would be to create alerts and validate the results of the alerts instead. As alerts run on the trading time (9:20am, 9:25am, 9:30am) unlike backtest, which is generated on the fly i.e when you view/open the scan page.

Note: This behaviour is NOT a bug, but rather how candlestick charts are shown/displayed, the candlestick chart show’s only the current version of the candle and not how it looked every second/minute in a day, which would mean the current candle on a candlestick chart would continue to change/update thru the day while the candle is incomplete

 

39 thoughts on “Backtest results FAQ”

    1. For “1 day ago” it will be the completed candle. For the current day(i.e daily candle using “latest..”), it will change/update until the current day’s candle complete

      1. I agree for the current day results, it will change till the candles completes for the day. But when we check the previous days Back test results, the results are changing frequently. why??

        1. This shouldn’t happen, unless there’s a bigger timeframe, like weekly/monthly that covers/spreads across all the day’s from that given month/week. Please share the scan link so that i can check

          1. Hi Akash/ChartLink Team,
            I have a similar issue. For one of my scans the backtest result for 27 Jun shows a change when compared to when i had checked on 27th Jun 5 PM.
            I can share the scan link if required.

      1. For a lot of times even after the market is closed and backtested results are collected, next day either the stock gets disappeared from the previous day list but it still stays in the csv file that is downloaded. Also, have noticed stocks getting added in the list. Can you help me?

  1. Regarding in Daily Candles, I agree for the current candles ie for the current day, but when we see the previous days candles the results are changing frequently. Why???

    1. Previous candle’s shouldn’t change, unless there are other timeframes like weekly/monthly(larger time frames) which could impact the result. Please share the scan link so that I can check and provide details.

    1. This is rather a behaviour that you notice on candlestick charts as well. A better way to track/test a scan would be to ensure filters of higher timeframes like daily don’t impact/cause the results to change on a lower timeframe. Often we see queries like “Latest volume > sma..” which delays the result of a scan even if lower timeframes like 5 minute filters meet you conditions.

  2. Iam your premium customer from last 4 months. I have one query regarding backtesting that How can get the price and volume details in back test results

    1. We currently don’t have a provision to add volume/close fields in the backtest, however, we’ll plan on customizing this shortly

  3. If the results changing by using bracket then what would be the
    right way to use .
    is it changing for 5min or other short periods
    share me any example for short time period that shows exact situation of the stock
    thanx

    1. A better way to track/test a scan would be to ensure filters of higher timeframes like daily don’t impact/cause the results to change on a lower timeframe. Often we see queries like “Latest volume > sma..” which delays the result of a scan even if lower timeframes like 5 minute filters meet you conditi

      1. Your back testing model is good. Are you planning to add back testing with profit and loss, using amount invested in trade, exit rule like stop loss%, target%.

  4. problem is result shown only date not exact time please guide me, i need result with time .
    awaiting your prompt reply.

  5. ( {57960} ( [0] 15 minute close > [-1] 15 minute max ( 20 , [0] 15 minute close ) and [0] 15 minute volume > [0] 15 minute sma ( volume,20 ) and ( latest high – latest low ) * 1.1 / 4 + latest close < ( latest high – latest low ) * 1.1 / 4 + latest close ) )

    i have above screener but not updated since 03/08/2021 11.45 AM

    please guide what to do to run this screener normally.

  6. For “1 day ago” it will be the completed candle. For the current day(i.e daily candle using “latest..”), it will change/update until the current day’s candle complete

  7. Suggestion: Kindly integrate success percent calculator, with pre defined objectives. Objectives can be price rise (in %) in specific time. eg- 5% profits from current close in next 13 sessions. Make this feature available to only premium customers.

  8. Sir,
    Using nifty as Indicator was an outstanding request from my side.
    Eg if going long the
    the long trade should initiate only when the nifty is above some ema or other conditional indicator.
    This will keep us in trend with the market direction.
    Thanking you

  9. Can I use my chartink filter 1 day ago, 1 month ago, 1 week ago , time frame so I solve my problem for corrent Data and back test data is not match ???????

  10. Hi Team,

    You guys rock and are already doing tremendous work.

    A suggestion :
    For better backtesting, below timeframes for parameters like Open/Close/High/Low would be helpful. These can be made available for previous day/week candles as applicable. They will have values if those many days/weeks have passed. Else it’ll have ‘NaN’ or 0.
    1. 1 day after, 2 day after …. 5 day after (These would be particularly helpful)
    2. 1 Week after …
    3. 1 month after ..

    Any support in this regard would be much appreciated.

  11. I need stocks for next day trading before market opens. wil this scanner provide me stocks before market open or the scanner will provide stocks while live market.

Leave a Reply

Your email address will not be published. Required fields are marked *