İş tamamlandı
![](https://c.mql5.com/i/avatar/avatar_na2.png)
İş Gereklilikleri
Hi all programmers please read the requirements in depth so we have no miss-communications in the design phase.
This job is to create an indicator that produces entry and exit setups based on the below requirements, the second part of the job is to create an expert advisor that reads those entries and takes the trade positions.
So the indicator should do the following, it will generate arrows on the entry signals. It creates its entry signal by doing the following.
1. checks time frame one for direction ( 50 EMA below 200 EMA suggest down trend )
2. Checks time frame two for direction ( 50 EMA below 200 EMA suggest down trend)
3. Checks time frame three for direction ( 50 EMA below 200 EMA suggest down trend)
4. When all THREE of these time frames are in line it will have text on the Mql5 screen saying :"Strong Down Trend ( sells only)" ( would be good if the text for selling could be in red)
5. If the time frames only has two time frames in the same trend direction based on the moving average 50 and 200 it will say: ( Weak down trend ) ( would be good if the text for buying could be in green)
6. This would be the opposite for buys so if 50 ema is above 200 ema then it would be buying and would need to meet 2 out of three again for weak up trend and all three for strong up trend.
7. If it does not meet at least two of the time frames for having the same trend it will say " No Trend Do Not Trade "
8. For example lets say all three where in in the same direction and it was a down trend then on the time frame you are on it will await for the stochastic cross above the 80 lvl ( stochastic cross above the 80 lvl) before pointing out a arrow and a pop up alert saying Sell setup on " Currency Pair" on " time frame ".
9. If the trend direction only has two time frames agreeing to get the entry setup it will do the following. It will take the next time frame above say our three trend time frames are 5min, 15min and 1hour. It will take the time frame above from what were trading so for example if we are trading 5min it will use 15min. This will only show an entry on the 5min if the stochastics are above the 80 level, and the stochastic cross takes place on the 5min chart. It would do the same for buy positions except use the 20 lvl on stochastics.
Ok I think I have explained this as in depth as I can, here are the inputs that I would need on the indicator.
Inputs
-------------------------------------------------------------
MA-Method: Exponential
FastMovingAverage: 50
SlowMovingAverage:200
Movingaveragetimeframe1= true or false
timeframe: 5min
Movingaveragetimeframe2= true or false
timeframe: 15min
Movingaveragetimeframe3= true or false
timeframe: 60min
-------------------------------------------------------------
Stochastic Settings
Kperiod: 5
Dperiod:3
Slowing:3
Method: exponential
SellCrossAbove:80
BuyCrossBelow:20
TradepopupAlert=True
TradeSoundAlert=False
SellArrowColour=Red
BuyArrowColour=Green
TimeframeAboveFilter=true or false ( this is the filter when only two time frames match on trend direction to create an entry aslong as time frame above is in the above/below the 80/20 level.)
2TimeframefilterSell=80 ( time frame above stochastics have to be above 80 to generate sell signal on the stochastic cross on the time frame below)
2TimeframefilterBuy=20 ( time frame above stochastics have to be below 20 to generate buy signal on the stochastic cross on the time frame below)