Support Board
Date/Time: Sun, 12 Jan 2025 11:39:50 +0000
Post From: Volume by Price – auto start index input
[2016-12-06 17:51:59] |
Marmany - Posts: 307 |
Really appreciate your offer to allow Study Inputs to be accessed from another study when you work on ACSIL next year. I can foresee many applications for such functionality. Looking again at my situation it is possible for my other studies to pick up the start index from the start of the current Volume by Price (VBP) Study profile so only one Date and Time input is now required. Whenever a new start point is required the VBP study requires 5 mouse clicks + 1 x 10 character date input + 1 x 8 character time input. Agreed this is not the end of the world but on a typical day I will go through these actions 5 times on each of 3 platforms. On other studies, I have reduced this to 1 cursor movement and one hot key hit. The following code works by simply holding the cursor above the desired Time and hitting a Hot Key shortcut to Custom Study Control Bar Button 3. SCInputRef AutoInput = sc.Input[68]; if (sc.SetDefaults) { AutoInput.Name = "Enable One click Time Entry"; AutoInput.SetYesNo(true); return; } if(AutoInput.GetYesNo()) { sc.ReceivePointerEvents = 1; if (sc.MenuEventID == 3) { sc.SetACSToolEnable(SC_ACS_TOOL3, false); //one time use StartDateTime.SetDateTime(sc.BaseDateTimeIn[sc.ActiveToolIndex]); sc.FlagFullRecalculate = 1; } } Hopefully you will be able to spare a few moments to investigate the possibility of adding this small module to the VBP study, before the more comprehensive work is undertaken on ACSIL. |