NexusFi: Find Your Edge


Home Menu

 





How to set the line thickness programatically on a plot.


Discussion in NinjaTrader

Updated
    1. trending_up 3,355 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?
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
Increase in trading performance by 75%
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
28 thanks
Tao te Trade: way of the WLD
24 thanks
Diary of a simple price action trader
21 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
9 thanks
  #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