The essence of the strategy is as follows:
Manually set the trend line (ray). When the EA
starts on this line, it places pending BuyStop or SellStop orders (depending on the position of the price relative to the line). When an
order is triggered, the EA immediately puts a stop loss on the triggered order on the same line. And puts a pending order on the same line. And so
what I could do: the delay worked, the ADVISER set a stop loss and a delay of BS or SS). Naturally spreads and other information
it is taken into account. For this reason, the SL may differ slightly from our level. The main thing is that it would be close to this level.
The price rose and crossed
the manual line from the bottom to the top. BuyStop Is Triggered. according to the opened order, sl was placed on our line. and set sellstop.
Then the price crossed the same line from top to bottom. The buy order was closed on SL and the pending Sell Limit was triggered immediately. When a Sell
order opens, an SL is placed on the line and a BuyStop is placed on the same line.
Now we expand the boundaries of consciousness.
On the chart (preferably take
long-term) manually draw trend lines. The upper and lower border of the channel. Launch the Expert Advisor. The owl works out these levels by setting the SellStop delay
below the price at the level and above the chena at the BuyStop level we have drawn. After working out one of the levels, the Expert Advisor runs the
algorithm without touching the second level. That price tag just hangs there until the price is right for it. It will fit, touch-the adviser will work out the
We drew a channel of two lines. Themselves. With my own hands. We launched the Expert Advisor. The price
is somewhere between the levels. The Expert Advisor at the lower level of the price postpones the SellStop. On the top is Opened. Let’s say the price went down and
touched the lower level. The SS alarm went off. A sell order was opened, its SL was placed at the level from which it was opened, and
a pending BuyStop order was placed at the same level. So we have one open sell order with SL and 2 pending buy orders in standby
The price turned around. Went up. Touched SL. The sell order closed and
the buy order was immediately triggered. The buy order has been triggered, and SL is placed on the channel line. And immediately in this place, the SS order is postponed. So
we have one open buy order, one pending BS order, and one SS order. The price went higher. It reached the upper limit of our channel.
The BuyStop order was triggered. The one. The very first one that was created in the saaaam beginning. The adviser processed it. And now we have: 2
open Buy orders and 2 pending orders of the SS. Now, if the price goes below the upper limit, we will have 1 open Buy order, which we
got from the lower limit of the channel. 1 open Sell order from the upper channel. 1 SS pending order on the lower channel and 1 BS pending order
on the upper channel. The price was trapped. Now, wherever she goes, we’re supposed to make a profit.
Interchange: The bot trades on the H1 hourly chart. When the day comes to an end, the bot closes
ALL ORDERS on the last hourly candle inside the day with its closing! If you need to make adjustments to the channel , we do it ourselves. the bot starts with the
first candle of the new day.
Nuance: The price should be between the levels. Otherwise, the trap will be very difficult to close.
who is awesome at messing around in mql5?