Paintbars/Scans and Hotkeys are two very powerful and versatile features in Medved Trader. You can use them together to enhance that functionality.
The way to do this is:
•Create a Paintbar or a Scan that calculates some value that you would want to use in your Hotkey when placing a trade.
•Use the SetInterVar or the SetChartVar function to pass that value out of the paintbar.
•Use the passed value in any hotkey by using the intervar() or chartvar() scripting function in any field
The difference between intervar and chartvar values is that the intervar values are per-symbol. That is, a chart's paintbar may set it, but a hotkey may access it on a different chart, or even on a trade ticket or a Level II window.
The chartvar value is only available to the hotkey on the chart where you placed the particular paintbar.