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


Setting "Line" attributes
Updated: Views / Replies:1,495 / 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 90,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

Reply
 
Thread Tools Search this Thread
 

Setting "Line" attributes

  #1 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 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"));
Add(
new Line(Color.Black, 100, "Up Trend"));
Add(new Line(Color.Gray, 0, "Zero Line"));
Add(new Line(Color.Black, -100, "Dn Trend"));
Add(
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"));
Add(
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"));
Add(
new Line(new Pen(Color.Lime, 3), -200, "Lower Extreme"));



Reply With Quote
 
  #2 (permalink)
Elite Member
Florida
 
Futures Experience: Intermediate
Platform: NT7
Favorite Futures: CL, NQ, NG
 
Posts: 456 since Jun 2009
Thanks: 1,359 given, 383 received

Hi Saroj,

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

looks like you tracked it down

Kirk


Reply With Quote
The following user says Thank You to zeller4 for this post:
 
  #3 (permalink)
Elite Member
Arcata, CA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: index futures, oil
 
Saroj's Avatar
 
Posts: 482 since Jun 2009
Thanks: 223 given, 389 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

Reply



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

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

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 10:33 AM
Horizontal "zones" around a REF line zury Investor/RT 7 May 18th, 2011 06:39 PM
Set "Default 24/7" as default setting on strategy zwentz NinjaTrader Programming 6 January 18th, 2011 12:37 PM
RJay's "Trader Volume" and "Trader Tick" Indicator Suites RJay The Elite Circle 20 December 20th, 2010 06:01 PM
Luv that line... "i'm not a f*cking gambler" trendisyourfriend Off-Topic 0 November 18th, 2010 02:05 PM


All times are GMT -4. The time now is 03:09 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-16 in 0.12 seconds with 19 queries on phoenix via your IP 54.163.209.109