• 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

I have a question, thanks

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

    I have a question, thanks

    I would like to ask, if is possible to program own tools for NT. E.g. some other version of RULER. Or some tool, which would be able to export values from selected bar on chart to excel sheet, or other software. This peace of software i already sow. How is this possilbe? Is there some API for this purpose?

    Thank you very much for response.

    #2
    Hello quynhkoll,

    Thank you for your note.

    Yes, it would be possible to create your own custom drawing object which when you click on the chart bar would export that bars values to excel. I'm unaware of any existing samples which demonstrate how this could be done.

    From the drawing tool logic you could trigger an action which will save the bar data to a file, The following would be an example of how you could write to file,
    https://ninjatrader.com/support/foru...ead.php?t=3475

    You would want to open the NinjaScript Editor under Control Center>New>NinjaScript Editor and you could view existing drawing tools in the Drawing Tools Folder for samples of existing drawing tools. You could click on one of these, save as, and start by modifying an existing tool.

    You would be interested in the following section of our helpguide while building your custom drawing tool,
    https://ninjatrader.com/support/help...wing_tools.htm

    After you’ve created your drawing tool, you may want to write its Anchors to the file,
    https://ninjatrader.com/support/help...s/?anchors.htm

    Another approach which might be easier would be to create an indicator which will loop through all drawing objects on a chart, and if the drawing object equals what you drew, you could have that drawing objects anchors written to a file. For example a vertical line might be a good drawing tool to trigger this write to file. You could see more information at the following link,
    https://ninjatrader.com/support/foru...d.php?p=546887

    The following sample on the forum might provide an approach to do what you're looking to do via an Indicator, I would suggest,
    https://ninjatrader.com/support/foru...d=9&linkid=931

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by manugarc, Today, 01:15 PM
    0 responses
    8 views
    0 likes
    Last Post manugarc  
    Started by JMont1, Today, 11:42 AM
    0 responses
    5 views
    0 likes
    Last Post JMont1
    by JMont1
     
    Started by Steve L, Yesterday, 10:04 PM
    0 responses
    4 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Started by marianfed, Yesterday, 09:47 PM
    0 responses
    6 views
    0 likes
    Last Post marianfed  
    Started by hir04068, Yesterday, 09:29 PM
    0 responses
    8 views
    0 likes
    Last Post hir04068  
    Working...
    X