NexusFi: Find Your Edge


Home Menu

 





How to set the line thickness programatically on a plot.


Discussion in NinjaTrader

Updated
    1. trending_up 3,360 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

How to set the line thickness programatically on a plot.

  #1 (permalink)
 hcoffin1941 
Fresno, CA USA
 
Experience: Advanced
Platform: NinjaTrader
Broker: Mirus Futures/Zen-Fire
Trading: ES
Posts: 4 since Oct 2011
Thanks Given: 4
Thanks Received: 1

My automated strategy includes plotting a line on the chart. I can set the color and style of the line but I cannot set the line thickness programatically. Making this change manually each time I run the strategy is a real pain. Does anyone know the code to adjust the line thickness parameter to 3? I appreciate the help.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
ZombieSqueeze
Platforms and Indicators
 
  #2 (permalink)
 
forrestang's Avatar
 forrestang 
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
Posts: 1,329 since Jun 2010
Thanks Given: 354
Thanks Received: 1,047

Try this:

 
Code
Add(new Plot(new Pen(Color.Red, 3), PlotStyle.Line, "SomePlot"));

Reply With Quote
Thanked by:




Last Updated on October 25, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts