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

Questions about MultiCharts and user contributed studies.
User avatar
HarrisonProgramming
Posts: 16
Joined: Aug 22 2012
Location: Greater Phoenix, Arizona, US
Has thanked: 18 times
Been thanked: 8 times
Contact:

Sep 10 2024

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 10 times

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

Harrison
Last edited by HarrisonProgramming on Sep 11 2024, edited 1 time in total.

Jeff R
Posts: 4
Joined: Jul 15 2024
Has thanked: 1 time

Sep 11 2024

Thank you! I will try this solution!