# Backtest error (even with sample programs)

**URL:** <https://forums.collective2.com/t/backtest-error-even-with-sample-programs/15116>\
**Category:** Seetu\
**Created:** [September 3, 2021, 10:07pm UTC](https://forums.collective2.com/t/backtest-error-even-with-sample-programs/15116 "2021-09-03T22:07:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TestTrader4](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/testtrader4/32/13320_2.png) [@TestTrader4](https://forums.collective2.com/u/TestTrader4)\
**Post date:** [September 3, 2021, 10:07pm UTC](https://forums.collective2.com/t/backtest-error-even-with-sample-programs/15116/1 "2021-09-03T22:07:51Z")

</div>

Hi,  
unfortunately backtesting in Seetu does not seem to work at all for me.  
I always get this error message:

> Backtest error: Could not convert string to integer: NA. Path ‘BackTesterSettings.HoldMinBars’, line 39, position 23. undefined

To clarify, line 39 does not exist in my script at all. This seems to be internal.  
If I try to set the HoldMinBars option I get a compiler error.

Anyone faces the same issue?

---

<div class="post-metadata">

**Author:** ![BobSvan2](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/bobsvan2/32/21391_2.png) [@BobSvan2](https://forums.collective2.com/u/BobSvan2)\
**Post date:** [November 12, 2021, 3:47pm UTC](https://forums.collective2.com/t/backtest-error-even-with-sample-programs/15116/2 "2021-11-12T15:47:16Z")

</div>

Just for other members information:

HoldMinBars is still not fixed.

If your intention is to buy and sell on the same day with Seetu based on daily data, then it can be substituted by SetTradeDelays and AllowSameBarExit options:

```auto
SetTradeDelays(0,1,0,0);
SetOption( "AllowSameBarExit", TRUE );
Buy = 1;
Sell = 1;

```

---

<div class="post-metadata">

**Author:** ![f\_f6](https://yyz2.discourse-cdn.com/flex028/user_avatar/forums.collective2.com/f_f6/32/13320_2.png) [@f\_f6](https://forums.collective2.com/u/f_f6)\
**Post date:** [December 8, 2021, 2:56pm UTC](https://forums.collective2.com/t/backtest-error-even-with-sample-programs/15116/3 "2021-12-08T14:56:36Z")

</div>

The same problem here
