Setting the report folder name without the timestamp

Hello, is it possible to name the report folder avoiding that the time stamp appears in its name?

If I try to use the command SetFormulaName("MyFormulaName"); the generated report folder is the following:

How to get rid of the "-20240712182020543" part?
It is ok for me that the content of the folder is overwrited every time I run that backtest.

p.s.: before posting I've found this topic: LINK that's seems similar, but the solution doesn't work as I expect.

You can't get rid of timestamp because folder names MUST be unique, so all backtest can be stored and retrieved later and also because AmiBroker is MULTITHREADED and many threads may write at the same time.
If folder was shared, there would be conflicts accessing same file leading to slowdowns/lockups/failures.

If you don't like that, you can always write a simple batch that would delete and/or rename folders that you don't need.

1 Like

Ok, thank you Tomasz, clear reply. I think I should go with the batch workaround.
Marco

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.