• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to define Plot Style

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • sniper
    started a topic How to define Plot Style

    How to define Plot Style

    Hi,

    i nedd to add my indicator in my strategy and in void Inizialize i add :

    Myindicator().Plots[0].Pen.Color = Color.DarkOrange;
    Myindicator().Plots[0].Pen.DashStyle = DashStyle.Dot;

    Add(SNIPERabrahm());

    But I need draw a dot line. What is the right command to add a line type ?

    Plot.Style.Line ? But can someone explane me how it functions?

    thanks in advance.

  • NinjaTrader_PatrickH
    replied
    Thanks to Calonious for answering this item.

    Sniper, please let us know if you have any questions or if we may be of further assistance.

    Leave a comment:


  • Calonious
    replied
    Should be able to use -
    Code:
    MyIndicator().Plots[0].PlotStyle = PlotStyle.Line;
    Ref: http://www.ninjatrader.com/support/h...plot_class.htm

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by thgamey, Today, 02:05 AM
0 responses
0 views
0 likes
Last Post thgamey
by thgamey
 
Started by tpdk2012, Today, 12:51 AM
1 response
7 views
0 likes
Last Post NinjaTrader_ChrisSch  
Started by simonerg, Today, 12:13 AM
0 responses
7 views
0 likes
Last Post simonerg  
Started by rickyblah12, 07-20-2019, 01:01 PM
2 responses
20 views
0 likes
Last Post NinjaTrader_ChrisSch  
Started by edunwa, Yesterday, 04:11 PM
1 response
8 views
0 likes
Last Post NinjaTrader_EricB  
Working...
X