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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment