작업 종료됨
명시
Price retraces towards the 20ma
Can you build me a simple EA? I would like the EX4 and MQL4 source files also. The Screen shots that I sent are for the H4 and H1 TF´s. The set up actually works much better on W1 and D1 TF´s.
I have screenshots of what I want.
-I want to use a trending (not flat) 20ma as a dynamic S/R. (ma should have adjustable parameters).
-I want to use 2 Time Frames. Any TF´s can be used.
-The immediate upper TF 20ma must be trending up or down, say greater/less than 30% angle for at least the last 3 bars. The upper TF should have adjustable time and degrees parameters. For example, if I am trading on H1, then H4 20ma must have an angle greater/less than 30 degrees.
-I want to enter into a pull-back/rally to the current TF 20ma.
I will use a short example here on H4 and H1, but a buy trade is exactly opposite.
Short Setup:
I am trading on H1 so H4 20ma must be trending down at less than 30 degrees for at least the last 3 bars. (adjustable parameters)
On H1, price has been steadily going down and then has a rally (retrace) up towards the 20ma. The initial pattern is 4 bars. After bar #1 there must be 3 bars with consecutive higher lows. The 3 bar consecutive higher lows (not the highs or the close) must still be under the current TF 20ma at this point.
Once this condition has been met, place a pending short entry 5 pips below the last low. (adjustable pip parameter)
If there is no fill and price continues higher with higher lows, keep moving the pending short order up 5 pips under the last bar low. From here (after the 4th bar), the consecutive higher lows can start being above the 20ma.
If there is a pending order condition and the pending order line is not touched, say price makes a lower low only 3 pips below the last bar, do not move the original pending order. Now, on the next bar/bars, if price does hit the pending order, then it is filled…………however, if price continues moving higher and is making more higher lows, keep trailing the pending order line up with the 5 pips below last low entry.