工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
I think the main Idea is always to Sell when market has a bearish conditions and Buy when market has a bullish conditions and so take advantage of these actions.
To achieve this, I composed the idea of this EA.
INDICATORS:
T3-SLOW. The bullish slope shows bullish condition. The bearish slope shows bearish condition.
T3-FAST. Needed for to determine valid entry candle.
ZIGZAG. Price needs to retrace from last low/high certain amount of points in order to make the basis for valid entry.
STOCH. STOCH indicator "SLOW%K"-line has to be between extremums. Extremums levels have to adjustable.
MACD EXT (with controllable MA type). MACD EXT histogram needs to have slope directed accordingly. Meaning in bullish case slope needs to be bullish, in bearish case slope needs to be bearish.
Heikin ASHI SMOOTHED (WITH controllable MA types). Needed for exiting the position for one scenario.
These are indicators which will work in this EA.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Now I will describe the process, which EA should calculate on BULLISH case:
Firstly EA checks if T3-SLOW slope is bullish.
If yes the next step is:
EA checks if price have moved down enough (distance is marked in settings) pips from last ZIGZAG high. Lets say correct retracement should be 30pip. If price have moved down 30pips from last ZIGZAG high,
EA continues to next step:
STOCH SLOW%K line should be between extremums. If line is between extremums,
EA continues to next step:
MACD histogram have to be with bullish slope. if the MACD histogram slope is bullish,
EA continues to next step:
Signal candle should close as bullish candle and this close needs to be above T3-FAST. If the signal candle closes above T3-FAST,
EA opens LONG POSITION.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
For TP I planned three ways.
1) in pips. If price moves certain amount of pips, EA closes the trade.
2)PIPs in certain time period (eg. if price moves very quickly certain amount of PIPS then EA locks profit).
3) EA uses heikin ashi smoothed lines to exit profitable trade. To activate this TP mode the pre-position retrace has to be deeper (length is set in settings). Also t´his mode activates when price have already moved certain pips away from position opening.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Stop Loss
in points
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Restrictions
Zigzag trap. Zigzag trap as a channel. Avoid trading when actual signal is closer than 15pip (adjustable value) to previous zigzag top (in bearish case)/ bottom (in bullish case).
MAX amount of trades. 0- as disable.
Too long entry candle. If entry candle reaches certain length, the entry signal is not valid (to avoid situation where EA enters when move is basically over).
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Money management
MANUAL LOT | "0" if disabled |
AUTO LOT | enable/disable |
risk | % |
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
monday
tuesday
wednesday
thursday
friday
for each day start time/ end time
offset from broker time
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
All indicators have to be with adjustable base-time period (eg. I use M5 chart, but i want to use period for T3 from H1... If this is too difficult I can calculate the difference from timeframe and periods manually...)
T3 needs to have "PERIOD"+ "V-Factor".
ZIGZAG original settings.
MACD with controllable MA type(SMA, LWMA, T3)
STOCH original settings.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<