Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Indicator
Collapse
X
-
Indicator
I'm looking for a MACD that colors the bars when the avg is above macd line and above zero line and opposite for below zero lineTags: None
-
Welcome to the forums sinclair54!
Many custom indicators and modifications of the MACD indicator can be found on our User App Share. I have provided a link to a search of MACD variants below. You may find several different customized indicators to choose from here.
The link above is publicly available.
The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
We look forward to assisting.JimNinjaTrader Customer Service
-
I looked at all and there was not anything I would like to have. can you take one and tweak it for me. Thanks1 Photo
Comment
-
Hello sinclair54,
Our support staff would not provide the code modifications on your behalf, but we would be happy to show you what modifications you would need to make so you can customize your own indicators.
You can open the MACD indicator in the NinjaScript Editor, right click, and then select Save As to create a copy that you can modify.
Note that our current plot values are Value[0], Avg[0], and Diff[0].
Your comparisons involve comparing the MACD plot (Value[0]) to the Avg plot (Avg[0]) and then changing the color of the Diff plot. Note that the Diff plot is the third plot that is added with AddPlot in State.SetDefaults.
You can then make comparisons between the MACD and Avg plots to see if the MACD plot is greater than the Avg plot or the MACD plot is less than the Avg plot. Then you can change PlotBrushes[2][0] to change the current brush color for the Diff plot (3rd plot added) for your desired color.
For example:
Code:if (Value[0] > Avg[0] && Value[0] < 0) PlotBrushes[2][0] = Brushes.Red;
Basic Programming Concepts - https://ninjatrader.com/support/help...g_concepts.htm
PlotBrushes - https://ninjatrader.com/support/help...lotbrushes.htm
Let us know if there is anything else we can do to help.JimNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
10 views
0 likes
|
Last Post Today, 12:38 AM | ||
Started by AaronKoRn, Yesterday, 09:49 PM
|
0 responses
15 views
0 likes
|
Last Post
by AaronKoRn
Yesterday, 09:49 PM
|
||
Started by carnitron, Yesterday, 08:42 PM
|
0 responses
11 views
0 likes
|
Last Post
by carnitron
Yesterday, 08:42 PM
|
||
Started by strategist007, Yesterday, 07:51 PM
|
0 responses
14 views
0 likes
|
Last Post Yesterday, 07:51 PM |
Comment