Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Thread Tools Display Modes
Old 07-11-2018, 07:49 AM   #1
Junior Member
Join Date: Jul 2018
Location: Budapest
Posts: 1
Thanks: 1
Thanked 0 times in 0 posts
Default How to export drawn support and resistant levels data into an excel spreadheet?

Hi All!

I'm trading a breakout strategy and I draw support and resistant levels by hand, daily on several futures product.

I would like to get these levels into a txt or speadsheet in every day, after I have drew them.

What is the solution for this? A script or an indicator? Anyone has alraedy developed anything like this? I would appreciate


zsuzsageza is offline  
Reply With Quote
Old 07-11-2018, 08:52 AM   #2
NinjaTrader Customer Service
NinjaTrader_AlanP's Avatar
Join Date: Apr 2016
Location: Denver, CO
Posts: 2,674
Thanks: 223
Thanked 574 times in 553 posts

Hello zsuzsageza,

Thank you for your note.

I would suggest an indicator which you could apply to the chart, which will either immediately loop through your drawing objects and save their prices to a file, or will do so each day at a specified time and you can leave the indicator applied to each chart.
Below are some examples which would help you write this logic.

Here is an example of writing to file,

Here would be a example how you could trigger an action at a certain time every day,

I have attached a sample which loops through all drawing objects applied to a chart.

Rather than print the values to the output window as the attached example does, you would want to use the logic in the sample at the first link to have the prices written to file.

If you do not code and would like a list of third parties that would write this for you please let us know.

Please let us know if you need further assistance.
Attached Files
File Type: zip LoopThroughDrawingObjects.zip (2.1 KB, 1 views)
NinjaTrader_AlanP is offline  
Reply With Quote
The following user says thank you to NinjaTrader_AlanP for this post:

excel, export, levels, resistant, support

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export my data in format Excel turbofib Indicator Development 12 12-20-2017 09:49 AM
is it possible to export kinetick historical data to an excel file? joemiller Platform Technical Support 1 08-11-2014 01:44 PM
export completed trades data into excel wallsteetking Platform Technical Support 1 03-13-2014 03:13 AM
Export Data into Excel Zhorny Platform Technical Support 1 04-13-2011 08:45 AM
Export T&S Data Stream to Excel dmking Indicator Development 2 10-24-2009 07:39 AM

All times are GMT -6. The time now is 03:05 AM.

Futures, foreign currency and options trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.

CFTC Rules 4.41 - Hypothetical or Simulated performance results have certain limitations, unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.

This website is hosted and operated by NinjaTrader, LLC (“NT”), a software development company which owns and supports all proprietary technology relating to and including the NinjaTrader trading platform. NT is an affiliated company to NinjaTrader Brokerage (“NTB”), which is a NFA registered introducing broker (NFA #0339976) providing brokerage services to traders of futures and foreign exchange products. This website is intended for educational and informational purposes only and should not be viewed as a solicitation or recommendation of any product, service or trading strategy. No offer or solicitation to buy or sell securities, securities derivative or futures products of any kind, or any type of trading or investment advice, recommendation or strategy, is made, given, or in any manner endorsed by any NT affiliate and the information made available on this Web site is not an offer or solicitation of any kind. Specific questions related to a brokerage account should be sent to your broker directly. The content and opinions expressed on this website are those of the authors and do not necessarily reflect the official policy or position of NT or any of its affiliates. 

Vendors along with their websites, products and services, collectively referred to as (“Vendor Content”), are independent persons or companies that are in no manner affiliated with NT or any if its affiliates. NT or any of its affiliates are not responsible for, do not approve, recommend or endorse any Vendor Content referenced on this website and it’s your sole responsibility to evaluate Vendor Content. Please be aware that any performance information provided by a vendor should be considered hypothetical and must contain the disclosures required by NFA Rule 2-29(c). If you are interested in learning more about, or investigating the quality of, any such Vendor Content you must contact the vendor, provider or seller of such Vendor Content. No person employed by, or associated with, NT or any of its affiliates is authorized to provide any information about any such Vendor Content.