I am very interested in adding custom buttons to my SuperDOM and came across a few addons:
Add Buttons to the SuperDOM: referred to as “SuperDOM Add-On” in my questions below
Buy Sell buttons on the chart: referred to as “Chart Button Strategy” in my questions below
I have a few questions about the codes with which I would very much appreciate your help:
1. Rows 245 through 255 of the SuperDOM Add-On appear to be where one would put the actions that you want to occur when the buttons are pressed [I’ve included for Button 3 although Button 3 is optional in the layout]. Examples of actions one could program include “buy limit at bid.” Are my assumptions correct?
2. In the Chart Button Strategy, however, there is the more familiar “if” approach within OnBarUpdate for the button logic. Why couldn’t I use this approach for the SuperDOM Add-On?
3. Rows 93-100 of the SuperDOM Add-On spell out with “//” steps for naming and assigning a tag. Why would I need to assign a tag?
4. Rows 43-46 of the SuperDOM Add-On are for “State.Terminated” but are blank. I’m not really sure how one would go about terminating buttons in a SuperDOM, but I presume that if one could do that, this is where you would place the coding to remove the buttons. Is that correct?
Also, I have a few questions about making modifications to the buttons in SuperDOM Add-On code:
A. Is it possible to make the buttons go laterally like this “1” “2” “3” rather than horizontally like
“1”
“2”
“3”
?
B. I have read about drop-down menus in c#. Let’s assume there’s a button for a “buy limit order.” Could I create a menu with numbers such as “2, 4, 6, 8” that correspond to ticks below the bid in order to send a custom buy limit order? If you could point me in the correct direction on this, I would be very grateful.
Thanks a lot, look forward to your responses!
Comment