Pullback trading
-
Re: How to create pullback EA?
@l-andorrà can you help me trading with pullbacks I see old topic about this, but I heve simplified strategy as a image
-
Visually it is very easy, but coding it is a completely different story. Just let me asking two questions:
- How many candles after the breakout should considered the minimum to be accepted by the EA?
- How the EA can now the previous support is a resistamce now?
And please, dont say, 'look at the chart'. That is not how the EA will work. Don't get me wrong, I'm not saying it is not possible. I'm just clarifying thet you will need a long list of conditions to be met for it to work.
-
@l-andorrà is correct, showing something visually helps only for context, but not producing the EA. For example, if you can't describe exactly why the support/resistance line is placed where it is you can't code it. The example you show isn't a horizontal line from the lowest low over the last X candles or the lowest close etc., so why draw it there. If it can't be explained it can't be coded. And that is just for drawing the line, without even considering what constitutes a pull-back.
Whenever I start to write a new EA I will write out exactly what I want it to do in full and then translate that into fxDreema blocks. It is a lot easier than coding in MQL4 (or any other language) but the principles are the same - we have to be able to describe exactly what it is the programme is to do.
-
@l-andorrà
thanks for your response, support and resistance is identified by previous day's high and low, for example: draw two line on candle"candle id= 1 ": candle high is resistance and candle low is support.When price crosses resistance (breakout) and check distance from resistance line if dictance with price line line is more than 15pips change the color of resistance for example from red to crimson and when price comes to that crimson line ea should buy,
can I explain a setuation ?
-
@temuriy The first requirement is easy to do. Try this:

On the second part, more detailed conditions are required. For example, how many bars are required (if any) for the pullback to be confirmed ather the breakout?
-
2 bars are enghough
-
@temuriy Did you try the second part?

-
No, I can made only drawings(lines) and open position when price crosses that lines but pullback is difficult to me
-
@temuriy Can you please share your project?