For alert, you need to use Analysis window and Explore option.
1. These two lines are not required so comment them
Plot(Close, "Close", colorWhite, styleDots);
Plot(DCEF, "NonLinear Ehlers Filter", IIf(Close>DCEF, colorBrightGreen, colorRed), styleThick);
2.
Instead of that add the this line:
Filter = Cross(Close,DCEF) OR Cross(DCEF,Close);
Do post back your results.
1. These two lines are not required so comment them
Plot(Close, "Close", colorWhite, styleDots);
Plot(DCEF, "NonLinear Ehlers Filter", IIf(Close>DCEF, colorBrightGreen, colorRed), styleThick);
2.
Instead of that add the this line:
Filter = Cross(Close,DCEF) OR Cross(DCEF,Close);
Do post back your results.
1) I need this line, so i can see the chart movement also, i mean the green and red lines
Plot(Close, "Close", colorWhite, styleDots);
Plot(DCEF, "NonLinear Ehlers Filter", IIf(Close>DCEF, colorBrightGreen, colorRed), styleThick);
2) Filter is giving out output of last candle change correct, but without that filter code too i was getting same result.
My query was I need an alert when the exact crossover happens, and i would adding my buy sell alert sounds to it, below mentioned.
AlertIf(Buy,"SOUND C:\\Windows\\Media\\Buy.wav","Buy@" + WriteVal( O,1.2),1);
AlertIf(Sell,"SOUND C:\\Windows\\Media\\Sell.wav","Sell@" + WriteVal( H,1.2) ,2);