Thanks!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Changing Price Marker Y-Value
Collapse
X
-
Changing Price Marker Y-Value
I have an indicator which i must run on COBC = false, however, I would like the Price Marker to be plotted at the value of the last completed bar, not the current bar in progress. Is there any way to add code to the FormatPriceMarker() method that would allow me to set the y-value of the Price Marker directly?
Thanks!Tags: None
-
You should be able to format it this way by reference the Plot value one bar ago, rather than the current bar.
Code:Plot0.Set(Close[1]);
MatthewNinjaTrader Product Management
-
Originally posted by Srgtroy View PostI have an indicator which i must run on COBC = false, however, I would like the Price Marker to be plotted at the value of the last completed bar, not the current bar in progress. Is there any way to add code to the FormatPriceMarker() method that would allow me to set the y-value of the Price Marker directly?
Thanks!
Comment
-
Originally posted by NinjaTrader_Matthew View PostYou should be able to format it this way by reference the Plot value one bar ago, rather than the current bar.
Code:Plot0.Set(Close[1]);
I did try the following:
Code:public override string FormatPriceMarker(double price) { return Plot0[1].ToString("N2"); }
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AaronKoRn, Today, 09:49 PM
|
0 responses
5 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
8 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
9 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,975 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment