• 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

Plot a line of the bar close

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

  • Slide588
    replied
    Thanks Paul, that works well. Cheers! :-)

    Leave a comment:


  • NinjaTrader_PaulH
    replied
    Hello Stephen,

    Thanks for your post and welcome to the forums!

    You have posted in the NinjaTrader 7 forums so I will respond with those links.

    You would want to use the DrawHorizontalLine() method: http://ninjatrader.com/support/helpG...zontalline.htm

    You can also accomplish this without coding. Add an SMA to a chart, set the SMA period to 1, set the CalculateOnBarClose to "False" to adjust on each tick or leave true to update on bar close, in the "plots" section of the SMA, change the "plotStyle" from "Line" to "HLine".

    Leave a comment:


  • Slide588
    replied
    Plot a continueous line of bar close

    Hi

    I'd like to plot a continuous "line of close" on top of the OHLC bars I use.

    How can I do this? With DrawLine() or another way? I've tried coding this but can only get the line to draw between the previous 2 closes.

    Thanks

    Stephen

    Leave a comment:


  • NinjaTrader_Ray
    replied
    You could capture the close price when the bar time (Time[0]) was at the specific time then draw a horizontal line using the DrawLine() method.

    Leave a comment:


  • dryan_uk
    started a topic Plot a line of the bar close

    Plot a line of the bar close

    Hello,

    I'm new to NT and am working my way around it

    How would I code an indicator that plotted a horizontal line at the close of a bar at 14:00. The line would be the value of the close of that bar at 14:00.

    DR

Latest Posts

Collapse

Topics Statistics Last Post
Started by vivekniwas, Today, 10:21 PM
0 responses
2 views
0 likes
Last Post vivekniwas  
Started by saltminer, Today, 06:22 PM
0 responses
2 views
0 likes
Last Post saltminer  
Started by saltminer, Today, 06:20 PM
0 responses
2 views
0 likes
Last Post saltminer  
Started by escobar63, Today, 05:06 PM
0 responses
7 views
0 likes
Last Post escobar63  
Started by i2w8am9ii2, Today, 04:41 PM
0 responses
7 views
0 likes
Last Post i2w8am9ii2  
Working...
X