Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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.
JesseNinjaTrader Customer Service
-
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:
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.JesseNinjaTrader Customer Service
- Likes 1
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ChartTourist, Today, 08:22 AM
|
0 responses
4 views
0 likes
|
Last Post
by ChartTourist
Today, 08:22 AM
|
||
Started by LiamTwine, Today, 08:10 AM
|
0 responses
2 views
0 likes
|
Last Post
by LiamTwine
Today, 08:10 AM
|
||
Started by Balage0922, Today, 07:38 AM
|
0 responses
5 views
0 likes
|
Last Post
by Balage0922
Today, 07:38 AM
|
||
Started by JoMoon2024, Today, 06:56 AM
|
0 responses
6 views
0 likes
|
Last Post
by JoMoon2024
Today, 06:56 AM
|
||
Started by Haiasi, 04-25-2024, 06:53 PM
|
2 responses
19 views
0 likes
|
Last Post
by Massinisa
Today, 05:32 AM
|
Comment