*** ---EMATx (EMA+Trendline) Indicator--- *** Mission: - Martket watch to realize signal bar and alert when signal bar appear on symbol it's attached (work on all timeframes of symbol) ** Definitions: - Break up bar is the bar has: + close[price] > close[price] of previous bar + close[price] > (EMAx[close] and EMAy[close]) (x=21, y=55 for default)) + low[price] < (EMAx[close] or EMAy[close]) + high[price]-low[price] > |EMAx[close]-EMAy[close]| - Break down bar is the bar has: + close[price] < close [price] of previous bar + close[price] < (EMAx[close] and EMAy[close]) + high[price] > (EMAx[close] or EMAy[close]) + high[price]-low[price] > |EMAx[close]-EMAy[close]| - Buy signal bar is break up bar has: + close[price] > Trendline down + low[price] < Trendline down - Sell signal bar is break down bar has: + close[price] < Trendline up + high[price] > Trendline up - Trendline is drawn by two point: Higher High and Lower High for Trendline down, Lower Low and Higher Low for Trendline up + Trendline down: High is highest high[price] between two bar, starting bar and ending bar. - Starting bar is the bar has close[price] > (EMAx[close] and EMAy[close]), and previous bar of this bar has close[price] < (EMAx[close] or EMAy[close]). - Ending bar is the bar has close[price] < (EMAx[close] or EMAy[close]), and previous bar of this bar has close[price] > (EMAx[close] and EMAy[close]). Lower High is High nearest break up bar, Higher High is High nearest Lower High and higher Lower High. + Trendline up: Low is lowest low[price] between two bar, starting bar and ending bar. - Starting bar is the bar has close[price] < (EMAx[close] and EMAy[close]), and previous bar of this bar has close[price] > (EMAx[close] or EMAy[close]). - Ending bar is the bar has close[price] > (EMAx[close] or EMAy[close]), and previous bar of this bar has close[price] < (EMAx[close] and EMAy[close]). Higher Low is Low nearest break down bar, Lower Low is Low nearest Higher Low and lower Higher Low. ** ** Requirements: - EMAx[close],EMAy[close] drawing on chart (Exponential Moving Average). - Trendline up/down drawing on chart (only for latest trendline up/down and show on timeframe its calculated). - Find out and arrow mark for all historic signal bar of all timeframe of symbol indicator attached. - Alert when signal bar appear: when signal bar appear arrow mark, make sound alert, make popup message, and send message to mobile phone via Push Notifications of MT5 (ex: XAUUSD M5 BUY/SELL signal). If there are more than one timeframe has signal bar at the same time then combine them in one alert (ex: XAUUSD M5,M15 BUY/SELL signal). Can turn on/off some functions above, timeframes alert can be selected from input. List of working timeframe on MT5: M1,M2,M3,M4,M5,M10,M15,M20,M30,H1,H2,H3,H4,D1,W1,MN. *** --NTA--