Hey everyone, I have created this indicator (attachment below) and I'm running into a little bit of a problem. As you can see in the image attached, I have MACD and my own indicator. The blocks of color line up with MACD perfectly, though the line does not. For example, at 12:00 the block of color is red, lining up with MACD, but the line is turns white and stays like that for a couple more candles. I have marked the 0.5 and -0.5 on the MACD because that is where I want the line on my indicator to start collecting and outputting data. This indicator is what I have done so far. I have also included with the picture the script in a zip file. Again, I'm not a professional programmer but this is what I've done so far. I really appreciate if you could help, please let me know if this idea is possible.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Help Needed with creating indicator
Collapse
X
-
Help Needed with creating indicator
Hey everyone, I have created this indicator (attachment below) and I'm running into a little bit of a problem. As you can see in the image attached, I have MACD and my own indicator. The blocks of color line up with MACD perfectly, though the line does not. For example, at 12:00 the block of color is red, lining up with MACD, but the line is turns white and stays like that for a couple more candles. I have marked the 0.5 and -0.5 on the MACD because that is where I want the line on my indicator to start collecting and outputting data. This indicator is what I have done so far. I have also included with the picture the script in a zip file. Again, I'm not a professional programmer but this is what I've done so far. I really appreciate if you could help, please let me know if this idea is possible.Tags: None
- Likes 1
-
Hi, thanks for posting. The script works on my end. Use the Print method to print out data from the script to make sure it's doing what you want e.g.
Code:if ((MACD1.Default[0] <= 0.5) && (MACD1.Default[0] >= -0.5)) { Print(MACD1.Default[0]); //this will print out the value of the MACD to the output window, confirming this condition becomes true. PlotBrushes[0][0] = Brushes.White; }
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
134 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
118 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment