Page 1 of 1

A possible solution to optimize Bar Sizes (Timeframes, Barintervals)

Posted: Sep 10 2024
by HarrisonProgramming
Hello there,

Though currently there is no standard optimization feature in MultiCharts to optimize bar size, here is a possible solution to utilize MultiCharts Portfolio Trader (MCPT) to do so.

* Create a portfolio in MCPT
* Insert the same instrument with multiple bar intervals.
* Insert your signals
* Under "Money management signal", insert "_MCPT_OptimizeBarSize_MMS"
* Set the data range
* Optimization ...
In the Optimizable Inputs table
Set Start Value, End Value, Step for your signal as well as BarSizeNum for _MCPT_OptimizeBarSize_MMS
* After the optimization is completed, review the results vs BarSizeNum to study what bar size work the best for your strategy.

Please import the attached _MCPT_OptimizeBarSize_MMS, load the sample test workspace, update to your strategy and symbol.

_MCPT_OptimizeBarSize_MMS.pla
(3.55 KiB) Downloaded 12 times
_MCPT_OptimizeBarSize_MMS_Test1.pws
(140.67 KiB) Downloaded 11 times

Hope you can make use of this to optimize bar size. You may even see a better solution.

Harrison

Re: A possible solution to optimize bar size

Posted: Sep 11 2024
by Jeff R
Thank you! I will try this solution!