It is showing me the current price in the MA window, I need it show me a "1" for inside bar or a 0 for not an inside bar, his screen shot does that... don't know why it won't for me...
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Need Code Help for MA
Collapse
X
-
...
It is showing me the current price in the MA window, I need it show me a "1" for inside bar or a 0 for not an inside bar, his screen shot does that... don't know why it won't for me...
-
Hi tshirtdeal,
Try restarting NinjaTrader and re-applying the indicator. You will see an error in the log tab.
The following link describes the steps to resolve this error - http://www.ninjatrader.com/support/f...ead.php?t=3170TimNinjaTrader Customer Service
Comment
-
Thanks Tim
learn something new everyday I guess, seems to be working, i got to learn this stuff better, that was so frustrating for me:
anyway, this is what I did and seems to work... make sense to you?
if(High[0] <= High[Math.Min(CurrentBar, 1)] && Low[0] >= Low[Math.Min(CurrentBar, 1)])
{
Plot0.Set(1);
}
else
{
Plot0.Set(0);
}
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
31 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
117 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
227 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
309 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment