Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 19:29:28 +0000



Post From: Custom Study throws error intermittently on Market Profile (TPO) chart

[2021-03-06 22:48:22]
User587930 - Posts: 13
Hello,

I created a custom study to allow me to change a chart's tick size by clicking an Advanced Custom Study Button. On button click, I set sc.TickSize to a tick size value and then set sc.FlagToReloadChartData to 1. The study works as expected on a regular bar chart. Occasionally though it will throw an error on a Market Profile chart and it is more likely to happen when clicking between the Advanced Custom Study buttons I've assigned to my different tick sizes.

I've pasted the logs below. The error is thrown prior the the chart being reloaded.



Chart: LRCX[M] #6 - Period: 1 Weeks, TPOs: 0.01 x 30 min | Study: Custom Tick Size Buttons | Got event id 4, ACS Button On Event, | 2021-03-06 14:38:32.363
LRCX[M] #6 | Reloading chart. | 2021-03-06 14:38:32.381
Chart: LRCX[M] #6 - Period: 1 Weeks, TPOs: 0.50 x 30 min | Study: Custom Tick Size Buttons | Got event id 4, ACS Button Off Event | 2021-03-06 14:38:48.800
Chart: LRCX[M] #6 - Period: 1 Weeks, TPOs: 0.50 x 30 min | Study: Custom Tick Size Buttons | Got event id 3, ACS Button On Event, | 2021-03-06 14:38:48.814
LRCX[M] #6 | Caught an unhandled exception in c_Chart::WindowProc. Message: 15, wParam: 0, lParam: 0 | 2021-03-06 14:38:48.816 *
LRCX[M] #6 | Reloading chart. | 2021-03-06 14:38:48.883