Setting "Line" attributes - NinjaTrader Programming | futures io social day trading
futures io futures trading

Setting "Line" attributes
Updated: Views / Replies:1,697 / 2
Created: by Saroj Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Thread Tools Search this Thread

Setting "Line" attributes

  #1 (permalink)
Arcata, CA
Trading Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
Saroj's Avatar
Posts: 482 since Jun 2009
Thanks: 223 given, 400 received

Setting "Line" attributes

Can someone please tell me how to set the thickness on the line? I've tried following NT "help" documentation with no luck.

Add(new Line(Color.Red, 200, "Upper Extreme"));
new Line(Color.Black, 100, "Up Trend"));
Add(new Line(Color.Gray, 0, "Zero Line"));
Add(new Line(Color.Black, -100, "Dn Trend"));
new Line(Color.Lime, -200, "Lower Extreme"));

One thought I have is that even though lines are not defined in the Properties region, maybe the following approach works:

Lines[0].Pen.Width = 3; // sets the "Upper Extreme" line width to 3
Lines[1].Pen.Width = 2; // sets the "Up Trend" line width to 2
Lines[2].Pen.Width = 1; // sets the "Zero Line" line width to 1
Lines[3].Pen.Width = 2; // sets the "Dn Trend" line width to 2
Lines[4].Pen.Width = 3; // sets the "Lower Extreme" line width to 3

Is that it? But these aren't a dataseries are they?

or maybe:

Add(new Line(new Pen(Color.Red, 3), 200, "Upper Extreme"));
new Line(new Pen(Color.Black, 2), 100, "Up Trend"));
Add(new Line(new Pen(Color.Gray, 1), 0, "Zero Line"));
Add(new Line(new Pen(Color.Black, 2), -100, "Dn Trend"));
new Line(new Pen(Color.Lime, 3), -200, "Lower Extreme"));

Reply With Quote
  #2 (permalink)
Trading Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
Posts: 469 since Jun 2009
Thanks: 1,395 given, 401 received

Hi Saroj,

new Line(new Pen(Color.Lime, 4), 20, "LineAtTwenty"));
is what i use...

looks like you tracked it down


Reply With Quote
The following user says Thank You to zeller4 for this post:
  #3 (permalink)
Arcata, CA
Trading Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
Saroj's Avatar
Posts: 482 since Jun 2009
Thanks: 223 given, 400 received

Thanks much zeller... I checked out the MS doco link but can't sort it out yet... there seem to be so many different ways to skin the plotting cats...

Reply With Quote


futures io > > > > > Setting "Line" attributes

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

Similar Threads
Thread Thread Starter Forum Replies Last Post
dealing with GetCurrentBidVolume and GetCurrentAskVolume , "long" casting into "int" jmejedi NinjaTrader Programming 4 May 23rd, 2011 09:33 AM
Horizontal "zones" around a REF line zury Investor/RT 7 May 18th, 2011 05:39 PM
Set "Default 24/7" as default setting on strategy zwentz NinjaTrader Programming 6 January 18th, 2011 11:37 AM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 05:01 PM
Luv that line... "i'm not a f*cking gambler" trendisyourfriend Off-Topic 0 November 18th, 2010 01:05 PM

dataseries, dow, es, how to, line width, ninjascript, ninjatrader, properties, size, trend

All times are GMT -4. The time now is 12:02 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business,
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts
Page generated 2019-06-20 in 0.24 seconds with 14 queries on phoenix