Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
Requirements Specification
I need an indicator for MT4 to follow the following rules
Variable 1-previous bar close price D1 time frame above moving average variable (able to change MA and sma,ema etc)
Variable 2 - previous bar close price on M30 time frame above moving average variable (able to change MA and sma,ema etc)
Variable3 - previous 2 bar closing price on M30 time frame above variable moving average (able to change MA and sma,ema etc) (this variable is to ensure the indicator will still work if variable 4 is not met but the price changes in last 5mins before close price causing the condition required of 2 bar closing above MA)
Variable4- previous 1 bar closing price M30 time frame + the 4 th M5 bar close price is above the last M30 close price which is above M30 variable MA(able to change MA and sma,ema etc) ) basically trying to be alerted 5 minutes before Variable 3 condition is met to allow time to consider trade.
indications and alerts - when above conditions met on M30 timeframe chart;
i- green up arrow on next open bar on the current time frame,
ii- alert,sound alarm and email sent on each new arrow (only on new arrow after indicator is loaded, do not need historical alerts crashing indicator)
Then opposite for Red arrow
Variable 1a-last closed bar D1 time frame below moving average variable(able to change MA and sma,ema etc)
Variable 2a - last closed bar on current time frame below moving average variable (able to change MA and sma,ema etc)
Variable 3a - - previous 2 bar closing price on M30 time frame below variable moving average (able to change MA and sma,ema etc) (this variable is to ensure the indicator will still work if variable 4 is not met but the price changes in last 5mins before close price causing the condition required of 2 bar closing below MA)
Variable 4a - previous 1 bar closing price M30 time frame + the 4 th M5 bar close price is below the last M30 close price which is below M30 variable MA(able to change MA and sma,ema etc) basically trying to be alerted 5 minutes before Variable 3a condition is met to allow time to consider trade.
indications and alerts - when above conditions met on M30 timeframe chart;
i- red down arrow on next open bar on the current time frame,
ii- alert,sound alarm and email sent on each new arrow (only on new arrow after indicator is loaded, do not need historical alerts crashing indicator)
I will need the mq4 source file and copyright will belong to me.
Thanks