Go Back   NinjaTrader Support Forum > NinjaTrader 7 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

NinjaTrader
Reply
 
Thread Tools Display Modes
Old 07-14-2008, 07:37 AM   #1
Eric M.
Member
 
Join Date: Jun 2005
Location: , ,
Posts: 66
Thanks: 23
Thanked 13 times in 9 posts
Default SwingTemp

Some time back I came across a Swing Script for NinjaTrader - I have no idea of the origin).
The script shows the points move per swing and the Fib Retracement of the last swing.
Is there some way that I can edit the font of the points value to increase the size and change it to "bold" text and if possible change the position of the text ?
Also is it possible to alter the values of the retracement levels ?
Any help would be greatly appreciated !!

Eric
Attached Images
File Type: gif Swing Script.png (43.3 KB, 659 views)
Attached Files
File Type: cs SwingTemp.cs (16.5 KB, 183 views)
Eric M. is offline  
Reply With Quote
Old 07-14-2008, 07:45 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 10,083
Thanks: 2
Thanked 32 times in 25 posts
Default

Hmm ... you would need to contact the author for clarification ... as last resort you could contact a certified NinjaScript consultant in order to "reverse engineer"/analyze this script: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-15-2008, 03:46 PM   #3
Eric M.
Member
 
Join Date: Jun 2005
Location: , ,
Posts: 66
Thanks: 23
Thanked 13 times in 9 posts
Default

Is there a way to change the font style to "bold" ?
I've looked up the parameters for DrawText() in the NinjaTrader Version 6 Help Guide but all the Reference links are dead links.

Eric
Eric M. is offline  
Reply With Quote
Old 07-15-2008, 03:49 PM   #4
NinjaTrader_Ray
Founder and CEO
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,150
Thanks: 35
Thanked 335 times in 126 posts
Default

When passing in the font object into the DrawText() method, you can do something like:

new Font("Arial",10,FontStyle.Bold)

I believe...You will have check the MSDN DOC for proper Font() constructors but In think this will work.
NinjaTrader_Ray is offline  
Reply With Quote
Old 09-22-2008, 05:02 PM   #5
duck_CA
Senior Member
 
Join Date: Jan 2008
Location: sacramento CA
Posts: 204
Thanks: 10
Thanked 5 times in 5 posts
Default looking for swing count per point and not tick

this is a great indicator and works nicely on the YM where each tick equals one point...
I'm trying to see if that can be changed on the ES to show the swing in points and not ticks...pic shows swings on a tick level


attached is also the indicator in a word doc

thank you
Attached Images
File Type: png 2008-09-22_1554.png (24.4 KB, 753 views)
Attached Files
File Type: cs SwingTemp.cs (16.5 KB, 113 views)
duck_CA is offline  
Reply With Quote
Old 12-03-2008, 01:30 AM   #6
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 4 times in 4 posts
Default

I added options to change the font, font color and text offset.
Attached Files
File Type: zip SwingTempEW.zip (5.4 KB, 495 views)
Elliott Wave is offline  
Reply With Quote
Old 12-03-2008, 01:50 AM   #7
Eric M.
Member
 
Join Date: Jun 2005
Location: , ,
Posts: 66
Thanks: 23
Thanked 13 times in 9 posts
Smile

EW,

Exactly what I was after !!
Many thanks.

Eric
Eric M. is offline  
Reply With Quote
Old 05-31-2009, 06:31 PM   #8
ctrlbrk
Senior Member
 
Join Date: Oct 2008
Location: Dallas, TX
Posts: 676
Thanks: 0
Thanked 3 times in 3 posts
Default

Eric & EW,

Thank you for this indicator.

I was wondering if you could provide some insight as to how this indicator has helped in your trading. How are you applying it?

I looked at this for a couple of hours and just couldn't find anything that would improve my profitability. I really did like the automatic fib plotting, but it did not extend into the future and did not use the Ninja "right margin" of the chart, making it very difficult to read or keep on the chart for live trading.

Mike
ctrlbrk is offline  
Reply With Quote
Old 06-19-2009, 02:40 PM   #9
hawkvt1
Junior Member
 
Join Date: Jan 2009
Posts: 5
Thanks: 0
Thanked 0 times in 0 posts
Default Updates?

I have tried importing the updated indicator that Elliot Wave posted but I get an error message stating that there is bugs in the script.

The current swing tool that I am using will not plot the lines between swings when I do replays or pull up a chart after market hours.

Any ideas?

Thanks
hawkvt1 is offline  
Reply With Quote
Old 07-09-2009, 08:52 AM   #10
duck_CA
Senior Member
 
Join Date: Jan 2008
Location: sacramento CA
Posts: 204
Thanks: 10
Thanked 5 times in 5 posts
Default zig zag lines won't draw

seems that the lines will not draw. text does work
duck_CA is offline  
Reply With Quote
Old 01-04-2012, 06:27 AM   #11
mccallum28
Member
 
Join Date: Nov 2011
Posts: 72
Thanks: 5
Thanked 0 times in 0 posts
Default Unable to load

Hi,

When I try to import it says an idicator uses the same methods. How do I know which on and how do i upload this one?
mccallum28 is offline  
Reply With Quote
Old 01-04-2012, 06:50 AM   #12
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 26,242
Thanks: 495
Thanked 1,866 times in 1,796 posts
Default

Quote:
Originally Posted by mccallum28 View Post
Hi,

When I try to import it says an idicator uses the same methods. How do I know which on and how do i upload this one?
Would the attached import well on your NT7?
Attached Files
File Type: zip SwingTempNT7.zip (5.7 KB, 132 views)
NinjaTrader_Bertrand is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Bertrand for this post:
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


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