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.
Example:
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
situation.
Example:
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
mode.
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?
cop999
Greetings! Did you manage to find the necessary Expert Advisor? Whether the strategy works. I myself have a similar strategy, on the breakdown of the channel lines.
dimeon
Well, attach mt4orders. mqh and it will be under Mt5!
In general, you need to apply to freelancing with such ideas !
alexeyvik
Where does it say two?
Forum on trading, automatic trading
systems and testing of trading strategies
who can write an Expert Advisor on
the intersection of the horizontal lines exposed in the manual?
Rad89, 2019.08.16 16:45
The essence of the strategy is as follows:
Manually set the trend line (ray). Advisor for
running on this line exposes
pending orders BuyStop or SellStop
(depending on the position of the price relative to the line).
who is awesome at messing around in mql5?
In the beginning, it says about one trend, because the plural of the word deferred I considered a typo. Plus the keyword in this phrase
OR, it means that there must be one order. Moreover, an additional explanation (depending on the position of the price relative to the line)
generally denies the presence of the second one.
When you order writing, take into account more time to find out what you want. It is easier to write than to find out what the customer wants. Hence
the cost of work.
Okay, I still can’t read it all the way through. with that, i say goodbye to you. Bye, good luck.
rad89
I was looking for. There, basically, everything is built on indicators. I have been looking for 2 weeks how to implement the idea. The options on the codebase do not fit the essence. Maybe I
Of course I don’t know how to search. I’m not very good at finding advisors, and it’s actually easier to make one out of the other than I think. I recorded the video.
please see: (chart H1)
iks_
codebase there are similar options for a wagon and a small cart. If you find
something, you can talk to the author. Maybe he will agree to modify it.
laryx
Freelancing will save the Giant of Thought and the Father of Russian Democracy…
If, of course, someone will undertake…
rad89
yes, still just like a shovel, just not in terms of writing, but in terms of strategy.If I knew how to write in mkul, I would write it myself. if someone is
interested and there is a desire to collect this “trap”, we can disassemble it in stages. You can use it to your advantage. I
don’t claim any copyright. I need it to work.
alexeyvik
Further reading is pointless. I won’t even do this in freelancing, it will take longer to find out what the customer wants.