Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Working version of Current Market Price line on chart for NT8
Collapse
X
-
Working version of Current Market Price line on chart for NT8
Hi, I am looking for a way to show a lin at the current price on the chart. I ahve search here and found few indicators but they fail to import in NT*8Tags: None
-
Hello,
Thanks for your post.
The easiest way is to use a Simple Moving Average indicator (SMA) with the following settings:
1) Set the period to 1
2) Set the calculate mode to OnEachTick
3) Change the SMA plotstyle from "Line" to "Horizontal Line".
This will produce a horizontal line at the current price that changes as price changes.
-
Where have you been all my (trading) life...........
I've been asking for this built-in or NT Indicator (bordering on ranting when not in NT8, shame on me) so as not to use an unsupported 3rd Party indie, and no-one has ever suggested this sublimely simple and elegant solution (neither had I thought of it)
I doff my cap to you, Sir
Comment
-
Hello soon123,
The directions provided were to manually add the SMA to the chart, you may want to try that approach to see how it works.
It appears you are trying to add this through a strategy using AddChartIndicator. It still can be done and while you are using a 1 period SMA and Calculate.OnEachTick, you need to change the PlotStyle from Line to HLine (horizontal line).
Try this:
else if (State == State.DataLoaded)
{
AddChartIndicator(SMA(1));
SMA(1).Plots[0].PlotStyle = PlotStyle.HLine;
}
- Likes 1
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
27 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
183 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
260 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment