|
Martingaling a self-defined breakout - EA needed
This is a system derived from two other threads. The system in itself is quite simple. You enter a market order at price P (letīs say it is a buy), size = 1 unit, with a TP = I & SL= 2I, and place at the same time a stop order (a sell stop in this case) at P-I, size = 3 units with its TP = P-2I and SL = P+I. It should look this way:
TP/SL --------------------------- P+I
First market order -------------- P
Sell-stop ------------------------ P-I
SL/TP --------------------------- P-2I
If the sell-stop is triggered, place a buy stop at P, size=6 units, same SL/TP than the previous buy order.
If this buy-stop is triggered, place a new sell-stop at P-I, size=12 units, same SL/TP than the previous sell order,
and so on...
The final profit will be defined by the initial size (1 unit)and the grid increment (I).
Basically, what we are doing here is defining a range width of 3 times the increment (I). Price will zig-zag within this range until it hits either of its boundaries, where all orders are closed (either at their TP or SL). At this time, any pending orders are deleted.
If we define the unit as 0.01 lots, the size progression will look like this:
Buys 0.01 0.06 0.24 0.96 3.84
Sells 0.03 0.12 0.48 1.92 7.68 etc...
This of course can be tweaked to increase the level of risk, at the traderīs choice.
The problem with the margin to let the progression go on is somewhat relieved because the positions hedge each other, so a broker with convenient hedging margin requirements will be most useful here (Alpari is one of them, btw).
An EA will be easy to code, so if any programmer likes the idea, he/she is welcome to try and code this one.
The ideal inputs would be:
First order long (true/false)
I (increment)
Sizes of each progression level
Time of entry
Time to stop trading
From preliminary observations with a similar EA, larger increments tend to work better since they keep you in the game long enough for a significant breakout to happen.
Enjoy,
Middleastern
|