Ease the development of hotkeyed indicators
Allow multiple hotkeyed indicators on a chart, by managing a "selected" indicator.
1. Development of hotkeyed indicators
Implementation is very simple
1. Declare a Gom.HotKeyManager
Gom.HotKeyClass GomHK;
2. Instantiate in OnStartUp
GomHK = new Gom.HotKeyClass(this);
3. Free in OnTermination
GomHK.Dispose();
Only thing you have to do now is declare your hotkey callback methods using the Gom.HotKey attribute.
Here is an example to increase a pen size using Ctrl +
If you want to add a message to the name of the indicators being displayed (GomMP needs this because it plots lots of params), you only need to add a GomHKMessage public property to your indicator, it will we automatically picked up by the framework.
example :
[XmlIgnore()]
public string GomHKMessage {get { return "Current thickness is " + Plots[0].Pen.Width++;}}
Special return strings :
"." : will only display the number of the indicator without its name
"," : will display nothing
Included : the framework file (it's included in latest version of GomMP), and a demo using a SMA to show how to modify plot attributes using hotkeys