Forum: NinjaTrader
March 17th, 2011, 09:20 PM
|
Replies: 10
Views: 4,257
Your curly brackets would have worked, i just...
Your curly brackets would have worked, i just removed them as unnecessary. The reason yours wasn't working correctly is because of the missing 'else' after the first Cross test. In other words you...
|
Forum: NinjaTrader
March 17th, 2011, 07:51 PM
|
Replies: 10
Views: 4,257
|
Forum: NinjaTrader
March 17th, 2011, 07:09 PM
|
Replies: 10
Views: 4,257
if (CrossAbove (+5,Value,1))
BarColor =...
if (CrossAbove (+5,Value,1))
BarColor = Color.Blue;
else
if (CrossBelow (-5,Value,1))
BarColor = Color.Magenta;
else
BarColor = Color.Gray;
Not sure if the logic here is good, if a...
|