Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Color change on price marker
Collapse
X
-
Hello kuriakos,
The price marker for the chart its self cannot be modified in this way however you could do this with an indicators price marker. An indicators Plot will gain a price marker which can be colored based on conditions or the price changing.
I look forward to being of further assistance.
-
Hello kuriakos,
I am not aware of an item that you could download however this is not a difficult item to make.
The following code could be used for that purpose:
In OnStateChange set the Calculate setting:
Then in OnBarUpdate a simple toggle based on the price changes:Code:protected override void OnStateChange() { if (State == State.SetDefaults) { Calculate = Calculate.OnPriceChange;
Code:private bool counter = false; protected override void OnBarUpdate() { counter = !counter; if(counter) { ChartBars.Properties.PriceMarker.Background = Brushes.Red; } else { ChartBars.Properties.PriceMarker.Background = Brushes.Blue; } }
I look forward to being of further assistance.
- Likes 1
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
345 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment