i am working on some different concepts to add more buttons to NT, as toolbars or whatever to use them for.
one idea i like to throw in the ring today :) the others need some more time.
i have all this in mind for some time yet and a helpful trader brought me the initial idea these days,
how to realize it in code. special thanks here to monpere !
this is only a graphical work till now without any other functions, but it shows the idea very well i think.
one concept to use it may be to link diff drawing-tool-calls to the buttons to be able to call DrawObjects ( a line, an arrow, a circle ... ) by 1 click instead of having to open the dropdownMenue in the toolbar.
another idea is to ad the Panel to a strategy to be able to controle different functions in the strategy like start / pause or even calling different Entry / exit -methods or such things
i am shure there will be much more ideas for it
Universal Buttons :
my idea is to create a kind of universal ButtonPanel that can be used in different costumized ways of its function later.
also the graphics is not complicated and will be open to be styled by the useres. changing the size and colors will be possible in the code with a bit coding experience ;)
once the basic triggerfunctions are implented in this framework its easy to add or change the comands the buttons fire off :
in NT7 you can add Hotkeys to the most functions and with a sendKey comand you can wire the PanelButtons with the functions you like to call.
Thats the idea how to use it so far.
So the next step to do here will be to ad the "functionality" to the buttons .
there are different ways i think, one is to do it with some kind of mouseEvents in these Rectangle-areas
or maybe there are some other ready-to-use- windows-form-buttons or something like this to implent.
but in this direction i have no experience yet - here i need some input + help from advanced coders.
ok thats it for now, here is how it looks :
the indicator is compiled with NT7 - not tested with NT 6,5.
i think in direction with using hotkeys as trigger its not useful to take care about NT6,5 here anymore.
At the end it must be said that such stuff is officialy unsuported from NinjaTrader !
so see it as experimental toys without any warranties.
if you are not an advanced coder, untill its tested, only use it in SIM-mode!