Forum

Help adding simple alert to indicator

Hi, I'm really frustrated trying to get this to work and figure I'd break down and ask for some help... I just want this indicator to alert.wav me when a new bar causes the graph to turn from Yellow to Green, or Yellow to Red or Green/Red turns Yellow. Green being bullish, Yellow is ranging, and Red

Help Please

I've been reading searching trying and failing for 3 days on this EA and I cant figure out some things. here is what I have right now. static int prevtime = 0; //Variables int start() //Program start. { int counted_bars = IndicatorCounted(); if (Time[0] == prevtime) prevtime = Time[0]; // Only trade