Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 04-09-2017, 03:12 PM   #1
woodyfox
Junior Member
 
Join Date: May 2016
Posts: 21
Thanks: 0
Thanked 1 time in 1 post
Default Drawing ToolBar Indicator stoped working after NT8 Update

Hi, I was hoping someone could tell me why this attached drawing indicator stopped working. It was written by sim22. It worked fine till NT8 had an update . Any help would be much appreciated.
Thanks Woody.
woodyfox is offline  
Reply With Quote
Old 04-09-2017, 04:56 PM   #2
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 6,585
Thanks: 109
Thanked 1,397 times in 1,326 posts
Default

Hi Woody,

There have been many code breaking changes since NinjaTrader 8 was in Beta 11.

Have you contacted Sim22 to ask if there is an updated version for the official release of NinjaTrader 8?

The actual script include a dll so this is something you would want to contact the original author for assistance with.
NinjaTrader_ChelseaB is offline  
Reply With Quote
Old 04-10-2017, 08:17 PM   #3
woodyfox
Junior Member
 
Join Date: May 2016
Posts: 21
Thanks: 0
Thanked 1 time in 1 post
Default

Thanks Chelsea.
I found another drawing indicator that I could use to replace the last one.

Question, would it be possible to use the icons that are stored in my Ninjatrader 8 bin directory. I have attached a screenshot of the code.
Any help would be appreciated.
Thanks Woody.
woodyfox is offline  
Reply With Quote
Old 04-10-2017, 08:23 PM   #4
woodyfox
Junior Member
 
Join Date: May 2016
Posts: 21
Thanks: 0
Thanked 1 time in 1 post
Default

One more time!
Attached Images
File Type: png DrawingToolCode_Example.png (141.5 KB, 15 views)
woodyfox is offline  
Reply With Quote
Old 04-11-2017, 09:09 AM   #5
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 6,585
Thanks: 109
Thanked 1,397 times in 1,326 posts
Default

Hello woodyfox,

Just to confirm, you are trying to use an .ico file as the image for the button?

From my understanding yes this is possible with WPF buttons by adding an image to the button's content.

Below are links to 3rd party sites that have more information.

http://stackoverflow.com/questions/2...nd-text-in-wpf

http://stackoverflow.com/questions/1...ogrammatically
NinjaTrader_ChelseaB is offline  
Reply With Quote
Old 04-11-2017, 10:05 AM   #6
woodyfox
Junior Member
 
Join Date: May 2016
Posts: 21
Thanks: 0
Thanked 1 time in 1 post
Default

Hi Chelsea,
So, I would have to know how to program this with all new code. I was hoping the content line in the attached .png could simply be changed to were my icon is located. I'm not a programmer by any means LOL !
Wishful thinking on my part?
woodyfox is offline  
Reply With Quote
Old 04-11-2017, 11:43 AM   #7
NinjaTrader_ChelseaB
NinjaTrader Customer Service
 
NinjaTrader_ChelseaB's Avatar
 
Join Date: Dec 2012
Location: Denver, CO
Posts: 6,585
Thanks: 109
Thanked 1,397 times in 1,326 posts
Default

Hello woodyfox,

It would be different but not much different. The drawing object images in NinjaTrader are a custom font with special characters. But you can use an image instead.

Create an image object variable with the path of your image.

Set the Content property of the button to the variable.
NinjaTrader_ChelseaB is offline  
Reply With Quote
Reply

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
NT8 Not working after version update manugarc Platform Technical Support 2 08-29-2016 02:43 PM
Custom Drawing Tool "MeasuredMove" and Drawing Toolbar jhowinvest Version 8 Beta 7 10-10-2015 02:19 PM
Drawing Toolbar AlphaOptions Platform Technical Support 2 04-30-2013 02:53 PM
Drawing Toolbar Pete77 Suggestions And Feedback 1 05-23-2011 11:13 AM


All times are GMT -6. The time now is 08:18 PM.

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. Visit the CFTC resources for education regarding the industry and signs of fraud.