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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
50 views
0 likes
|
Last Post
|

Comment