Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Anyone have code to draw a bold "X" at a Price/Time???

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

    Anyone have code to draw a bold "X" at a Price/Time???

    Anyone have code to draw a bold "X" at a Price/Time???

    #2
    Hello llanqui,

    You can use Draw.Text() to draw an X at a price and time.

    Draw.Text(NinjaScriptBase owner, string tag, bool isAutoScale, string text, DateTime time, double y, int yPixelOffset, Brush textBrush, SimpleFont font, TextAlignment alignment, Brush outlineBrush, Brush areaBrush, int areaOpacity)


    With the SimpleFont() parameter, you can specify the text to be bold.


    new NinjaTrader.Gui.Tools.SimpleFont("Courier New", 12) { Bold = true }
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Yes, for some reason I thought maybe I had to render it....but yes, the Draw.Text would be perfect...

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by crewtrades, 06-13-2024, 10:50 AM
      4 responses
      30 views
      0 likes
      Last Post crewtrades  
      Started by kingsteven, Today, 08:34 PM
      1 response
      3 views
      0 likes
      Last Post bltdavid  
      Started by biegea, Today, 08:54 PM
      0 responses
      3 views
      0 likes
      Last Post biegea
      by biegea
       
      Started by rene69851, Today, 08:36 PM
      0 responses
      2 views
      0 likes
      Last Post rene69851  
      Started by chartish, 04-11-2019, 12:40 PM
      15 responses
      3,832 views
      0 likes
      Last Post joselube001  
      Working...
      X