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 03-23-2018, 05:02 PM   #16
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

No problem, I hope the script works out well for you
gubbar924 is offline  
Reply With Quote
Old 05-02-2018, 06:53 PM   #17
aligator
Senior Member
 
Join Date: Apr 2010
Posts: 583
Thanks: 118
Thanked 91 times in 75 posts
Default

Very Nice gubbar924!

Hi,

This is a very useful tool, I just downloaded it but have not installed yet.

I can think of one really needed feature that can perhaps be easily added to the options in the drop down menu, "A Floating Price" dragged by the cursor indicating the price for cursor location.

Something similar to the attached screenshot. For some reason the pointer picture will not be saved, so I used the cross hair. The printed price is for the cross point.

Thanks and Great job!

Edited: I just installed it, one suggestion you may want to consider:

Make the circle filled without border, just the filled circular area with an opacity level option. Perhaps similar to my screenshot. That way, overlapping is no issue for small bars legibility.

Thanks.
Attached Images
File Type: png Cursor.png (22.1 KB, 35 views)
Last edited by aligator; 05-02-2018 at 07:21 PM.
aligator is offline  
Reply With Quote
Old 05-04-2018, 02:25 AM   #18
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

@aligator
Thank you for the feedback, I've updated the script.

If you update to this version, please delete the existing CursorTracker.xml file.
gubbar924 is offline  
Reply With Quote
The following user says thank you to gubbar924 for this post:
Old 05-05-2018, 12:15 AM   #19
aligator
Senior Member
 
Join Date: Apr 2010
Posts: 583
Thanks: 118
Thanked 91 times in 75 posts
Default

Quote:
Originally Posted by gubbar924 View Post
@aligator
Thank you for the feedback, I've updated the script.

If you update to this version, please delete the existing CursorTracker.xml file.
Thanks, gubbar,

One comment and 2 critical issues:

Comment: Opacity for the filled area is nice. However, the outline for the circle is still there. If the outline can not be deleted, one solution would be to assign a separate brush and opacity for circle outline so that it can be set to transparent.

Also, I have no idea if a trailing Price was plausible or not and whether you intend to include that also.

Now the Issues:

1. The add-on can not be uninstalled despite all the efforts, both your folder, the indicator, and xml file remain embed somewhere and keep showing up, even after removing from the PC, deleted from the trash can, and restarted the program.

Followed all the installation guide and un-installation. This I believe may be because the add-on is installed under the Tools in the Main Control Tools.

2. Perhaps, since the add-on is a drawing tool it should be installed under the Drawing Tool in the chart main menu, as all other default add-ons are installed. This would probably correct the un-installation issue.

Regardless, one should be able to uninstall the add-on.

Cheers!
Last edited by aligator; 05-05-2018 at 12:18 AM.
aligator is offline  
Reply With Quote
Old 05-06-2018, 05:21 AM   #20
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

Hey aligator!

I've updated the script. My guess is that it was the drop shadow effect that was bugging you, so I changed the script to not add that effect if the user has selected to use the fill option. BUT, if thats not the case and it actually is the outer rim of the ellipse that is the issue, then all you have to do is open the script in the NT script editor window, comment out line 614 and uncomment line 616, compile (its the 6th icon from the right at the very top of the editor window), and restart NT.
I've also made 2-3 minor adjustments in the OnWindowClose() method.

As for not being able to uninstall the script. Were you trying to get rid of the whole script, or where you just trying to delete just the CursorTracker.xml file? If its the latter, then its my add-on that keeps creating a new CursorTracker.xml file when one is missing. I asked users to delete their existing xml file because there was an update made to the xml's format and the new version of the script would not be able to use the old version anymore. So you just have to delete the existing file and the script will automatically replace it with a new correctly formatted version.
In the case of you trying to remove the script completely, from within your Documents\NinjaTrader 8\bin\Custom\AddOns\TG folder, please delete the CursorTracker.cs file and the CursorTracker folder, then restart NT.

This addon script is not a drawingtool. It uses standard canvases and shapes which are rendered on top of the NT windows, independent of using any drawingtool related code. Admittedly this is not the ideal way of doing this but its working so far, the preferred method would require parts of visualtrees etc that are considerably trickier to get to since the script does not have access. Having said that, because of the access issues and due to the way the work-around had to be coded, adding a small trail of ellipses on mouse movement would actually make resource usage spike up, its probably better to avoid that route for now. Perhaps in the future when something changes, I can revisit the idea.


I hope that helps!
Attached Images
File Type: png Image 4.png (80.9 KB, 22 views)
gubbar924 is offline  
Reply With Quote
Old 05-06-2018, 10:29 AM   #21
aligator
Senior Member
 
Join Date: Apr 2010
Posts: 583
Thanks: 118
Thanked 91 times in 75 posts
Default

Quote:
Originally Posted by gubbar924 View Post
Hey aligator!

.... I asked users to delete their existing xml file because there was an update made to the xml's format and the new version of the script would not be able to use the old version anymore. So you just have to delete the existing file and the script will automatically replace it with a new correctly formatted version.

In the case of you trying to remove the script completely, from within your Documents\NinjaTrader 8\bin\Custom\AddOns\TG folder, please delete the CursorTracker.cs file and the CursorTracker folder, then restart NT.

I hope that helps!
Thank you gubbar,

Previously, I did follow your instructions; deleted the XML then installed your update. The cursor and the tracker became jumpy. Then I decided to uninstall and re-install the whole thing. Deleted all the TG and its contents, but the tracker kept showing after the restart.
So, after a couple failed attempts I wrote my previous post.

I will do a complete Ninja re-install and will try to install your latest update again. I will report if my issues remain.

Many thanks, have fun.
aligator is offline  
Reply With Quote
Old 05-06-2018, 11:14 PM   #22
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

That sounds more like an app level issue, maybe someone from the NT support team could chime in here as to what is going on?
gubbar924 is offline  
Reply With Quote
Old 05-07-2018, 01:20 PM   #23
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 11,641
Thanks: 781
Thanked 2,010 times in 1,936 posts
Default

Hello aligator,

Thank you for your patience.

Please send us your log and trace files if this continues on your end.

You can do this by going to the Control Center-> Help-> Mail to Platform Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

Please place 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 05-09-2018, 06:47 PM   #24
aligator
Senior Member
 
Join Date: Apr 2010
Posts: 583
Thanks: 118
Thanked 91 times in 75 posts
Default

Quote:
Originally Posted by NinjaTrader_PatrickH View Post
Hello aligator,

Thank you for your patience.

Please send us your log and trace files if this continues on your end.

You can do this by going to the Control Center-> Help-> Mail to Platform Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

Please place 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.
Thank you PatrickH,

After I delete this indicator from the folder, removed from my computer, the Indicator will still remain on the Control Menu, Tools. On the restart of Ninja, the indicator will show up on the chart and gets re-installed in the AddOns folder, weird!

The only way I just discovered to completely remove it from the Control window is to delete the default "Untitled" workspace, restart Ninja and let is create a new default workspace.

This indicator seems to somehow gets embed and saved in the main control center and and perhaps in the Documents/NinjaTrader8 and re-installs itself on startup.

For now, I stopped using the indicator until someone else reports same behavior (may be no issue). However, the indicator asks for permission on installation to affect the program settings, to which one needs to agree.

I have suggested for the indicator to be coded to install as a drawing tool instead of a control feature under tools, if that is more appropriate.

Thanks again.
aligator is offline  
Reply With Quote
Old 05-09-2018, 07:33 PM   #25
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

I tested this as well, and it seems that we cannot just simply remove an add-on by deleting the file(s) from the folder, I think it may be due to the way NT uses AddOn files.

Do this instead, it worked for me:
  1. Open a NinjaScript Editor window.
  2. In the window pane on the right, under the AddOns folder, within the TG folder, CursorTracker will be listed; right-click on it, select "Exclude From Compilation". (Make sure it is checkmarked)
  3. Again in the window pane on the right, double-click on any other script name to open the file in the editor. Once the file is opened, click on the "Compile" button at the top of the window, it is the 6th button from the right.
  4. Once compilation has completed, you can close the editor window, save your workspace, exit NT8.
  5. Next time you run NT, it should not load the CursorTracker addon. At this point, you should be able to delete the file(s) without them reappearing.
gubbar924 is offline  
Reply With Quote
Old 07-12-2018, 07:19 PM   #26
cutzpr
Member
 
Join Date: Feb 2013
Posts: 82
Thanks: 23
Thanked 10 times in 9 posts
Default

Awesome addon, thank you very much. It is working fine but I keep getting log entries in my Control Center regarding the tracker and output window.

Quote:
Unable to create instance of NinjaScript 'UserSettings'. Most likely either the implementation no longer exists, there is no default constructor defined, the default constructor does not work correctly, or the 'OnStateChange' implementation for State=SetDefaults is flawed: System.MissingMethodException: Constructor on type 'NinjaTrader.NinjaScript.AddOns.TG.UserSettings' not found. at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Reflection.Assembly.CreateInstance(String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at NinjaTrader.Core.AssemblyRegistry.set_Item(String assemblyName, Assembly value)
Quote:
CursorTracker.OnMouseEnter threw an [System.NullReferenceException]
Object reference not set to an instance of an object.
at NinjaTrader.NinjaScript.AddOns.TG.CursorTracker.On MouseEnter(Object sender, MouseEventArgs e)
Last edited by cutzpr; 07-12-2018 at 07:34 PM.
cutzpr is offline  
Reply With Quote
Old 07-13-2018, 09:51 AM   #27
NinjaTrader_PatrickH
NinjaTrader Customer Service
 
NinjaTrader_PatrickH's Avatar
 
Join Date: Jul 2011
Location: Denver, CO
Posts: 11,641
Thanks: 781
Thanked 2,010 times in 1,936 posts
Default

Hello cutzpr,

Thank you for your post.

I am not seeing the same errors on my end when I test the add on. Can you send me your log and trace files so I may look into this matter further?

You can do this by going to the Control Center-> Help-> Email Support

Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

Please list 'ATTN: Patrick H' in the subject line and reference this thread in the body of the email.

I look forward to your response.
NinjaTrader_PatrickH is offline  
Reply With Quote
Old 07-19-2018, 11:09 AM   #28
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

Thanks for bringing this to my attention, someone else had mentioned this error as well (along with a fix for it).

I think the error shows up when the version of NT8 is changed/updated after this script has already been imported.


I've added the suggested change in script and it seems to be working well, I just haven't had a chance to upload it yet, I'll do so shortly.
gubbar924 is offline  
Reply With Quote
The following user says thank you to gubbar924 for this post:
Old 07-25-2018, 08:03 PM   #29
gubbar924
Senior Member
 
Join Date: Aug 2011
Posts: 145
Thanks: 26
Thanked 51 times in 40 posts
Default

a new version has been uploaded


07/25/2018
- minor bug fix: object instance error when mouse is over chart while NT8 or workspace is still loading.
- minor bug fix: System.MissingMethodException logged at load of NT, special thanks to AntiqueBrass for not only pointing this out, but for also supplying a fix!
gubbar924 is offline  
Reply With Quote
Old 07-26-2018, 05:12 AM   #30
emuns
Member
 
Join Date: Oct 2011
Posts: 64
Thanks: 31
Thanked 3 times in 2 posts
Default

Hello gubbar,

unfortunately it doesn´t work. It makes nothing. Clicking on Other options makes also nothing…
emuns is offline  
Reply With Quote
Reply

Tags
cursor, highlight, mouse, track, tracker

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
How to get 2 indicators plotted in sync in price and indicator panel (share data betw jpraema Indicator Development 8 08-14-2017 10:21 AM
Issue and Feature Request tracker? gurko Suggestions And Feedback 2 03-14-2017 08:59 AM
Goal: MAE & MFE tracker given a stop value; seeking programming ideas aventeren Indicator Development 26 09-03-2013 08:53 AM
Global Tracker Angler Suggestions And Feedback 3 06-26-2011 01:03 PM
Bug Tracker please skynetman Suggestions And Feedback 2 10-16-2009 12:11 PM


All times are GMT -6. The time now is 03:15 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.