billy822
03-19-2009, 02:56 PM
Is there a way to reference previous bars backcolor. Try to play a sound if current backcolor is different than the last backcolor. Thanks in advance.
NinjaTrader_Josh
03-19-2009, 03:03 PM
billy822,
Unfortunately not. If you want to see the bar color you can just check the conditions. If close > open then it is green. If close < open then it is red.
OregonSun
03-20-2009, 12:13 AM
Another option you could try: Within your strategy, you could record the conditions in a DataSeries or StringSeries. When the conditions call for a bar color change, also set the series with a flag to indicate the status.
If desired to have the color condition continue after the change (until the next change), you might use a variable which is zeroed at the change and then increments until the next change so that each series element may be set accordingly.
OregonSun