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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
161 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
81 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
125 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
206 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
184 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment