• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Adding controls inside the chart control

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Subhash Badri
    started a topic Adding controls inside the chart control

    Adding controls inside the chart control

    Hello,

    Is it possible to add controls like buttons and text boxes inside the chart control beside the Y-axis. If possible please provide the pointers on how to achieve it.

    Thanks,
    Subhash

  • tanyamushka
    replied
    Hi, Chelsea
    You provided download link to NT 8.
    Can I please have download link to Long Short ToolBar button for NT 7. Looks like Long Short Toolbar Buttons zip file contains CurrentDayOHL indicator instead (here is link NT7 https://ninjatraderecosystem.com/use...olbar-buttons/) .Many thanks,

    Leave a comment:


  • NinjaTrader_ChelseaB
    replied
    Hello PN720,

    Below is a public link to the LongShortToolBarButtons that shows how to place an order from a button's click event handler method. (In the ecosystem site user submitted apps section)
    https://ninjatraderecosystem.com/use...bar-buttons-2/

    Leave a comment:


  • PN720
    replied
    Hi guys,
    I'm trying to implement this into my strategy and having some difficulty. Just so I can see this work with the SampleMACrossover, what would this script look like if it would enter Long/Short only once I clicked the button?
    My strategy is already written but I would like to just add a Long/Short button that kicks things off for the order process in my script.
    Last edited by PN720; 10-21-2018, 02:39 PM.

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello gplatis,

    Thank you for your response.

    Add Ons and Buttons were both unsupported in NinjaTrader 7. Meaning there is no documentation nor support provided for such endeavors. In NinjaTrader 8 this is supported.

    However, just because something is unsupported does not mean someone on the forum or even one of us on support has not provided an example. Keep in mind you wish to do something that is not possible in NinjaTrader; enabling and disabling strategies via a button in an Add On.

    If you need examples of buttons or Add Ons (custom windows) in NinjaTrader 7 you have to look no further than the file sharing section of the Support Forum: http://ninjatrader.com/support/forum...splay.php?f=37

    Please let me know if you have any questions.

    Leave a comment:


  • gplatis
    replied
    Hi Patrick,

    "Unsupported" does not necessarily means that it cannot be done. It simply means, to my understanding, that you dont(want? to) provide the necessary information for these issues. For example I added such buttons in my own charts). The words you use ("unsupported") I think gives you an indirect way to "cut" the discussion about these issues (this is obvious not only to me but to others as well).Frankly, I think, the way you responded was not right and you seem to be having a not correct attitude... Whatever your reply would be in my above message you wont be able to change my said opinion. Other guys, over there, are more helpful !!

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello gplatis,

    Thank you for your response.
    I wonder if the same code (you provided for NT8) canalso be applied to NT7 in order to add buttons in the chart. If no, is there any other way to acheive this?
    The same code would not work in NinjaTrader 7. Adding/modifying buttons in NinjaTrader 7 is unsupported.
    Furthermore, is there any sample-code available to add (to an NT7's chart) a "pause strategy" button which can "toggle" (on - off) a strategy ?
    There is no sample code for this purpose. This would also be considered unsupported. To add to this; while you can use Disable() to disable a strategy from within itself there is not code to enable a strategy from out itself or within it's own code.
    Disable(): http://ninjatrader.com/support/helpG...t7/disable.htm
    Is there any list of the type of buttons that can be added in a NT7 chart ? (except from "Long" or "Short" buttons).
    There is no list of buttons that can be added.
    Documentation for "pausing" or "haulting" a strategy (via script) is missing from your official documentation (NT7), and these commands/statements are critical and absolutely needed to many developers, so you are kindly requested to do something (really sufficient) for that.
    This would be unsupported.

    Please let me know if we may be of further assistance.

    Leave a comment:


  • gplatis
    replied
    NT7 , adding buttons in the chart

    Originally posted by NinjaTrader_Jesse View Post
    Hello,
    Thank you for the post.

    Yes this is possible, you could utilize the UserControlCollection for this type of use:

    http://ninjatrader.com/support/helpG...sub=collection

    The help guide example demonstrates adding two buttons to the chart, to the left of the Y access.

    I look forward to being of further assistance.
    Hi Jesse,

    your post is really interesting.
    I wonder if the same code (you provided for NT8) canalso be applied to NT7 in order to add buttons in the chart. If no, is there any other way to acheive this?
    Furthermore, is there any sample-code available to add (to an NT7's chart) a "pause strategy" button which can "toggle" (on - off) a strategy ?
    Is there any list of the type of buttons that can be added in a NT7 chart ? (except from "Long" or "Short" buttons).
    Documentation for "pausing" or "haulting" a strategy (via script) is missing from your official documentation (NT7), and these commands/statements are critical and absolutely needed to many developers, so you are kindly requested to do something (really sufficient) for that.

    Thank you.

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    Hello,

    Thank you for the reply.

    For appending controls outside of the ChartControl specifically, this is a subject we don't really provide much help on as it requires that you are comfortable working with xaml using only C# code. You can see the following example of appending a button to a toolbar. You could work with the existing controls this way as well to form the window how you would like:

    http://ninjatrader.com/support/forum...731#post486731

    Please let me know if I may be of further assistance.

    Leave a comment:


  • Subhash Badri
    replied
    Thanks for the quick response, I see that I can add controls to the left side of the y-axis. I was looking to add controls on both sides and also at the bottom. Looks like asking for more . Please let me know if that too is possible.

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    Hello,
    Thank you for the post.

    Yes this is possible, you could utilize the UserControlCollection for this type of use:

    http://ninjatrader.com/support/helpG...sub=collection

    The help guide example demonstrates adding two buttons to the chart, to the left of the Y access.

    I look forward to being of further assistance.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by bztynbzp, Yesterday, 11:17 PM
0 responses
1 view
0 likes
Last Post bztynbzp  
Started by Dan_D_Trader, Yesterday, 03:49 PM
0 responses
4 views
0 likes
Last Post Dan_D_Trader  
Started by JohnAymin, Yesterday, 02:38 PM
1 response
6 views
0 likes
Last Post NinjaTrader_Tyler  
Started by Rmos22, Yesterday, 02:20 PM
2 responses
23 views
0 likes
Last Post Rmos22
by Rmos22
 
Started by sawtooth500, Yesterday, 12:59 PM
1 response
9 views
0 likes
Last Post NinjaTrader_Spencer  
Working...
X