Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

First independent community of traders

First independent community of traders Logo First independent community of traders Logo

First independent community of traders Navigation

  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • Buy Theme
  • Home
  • About Us
  • Blog
  • Contact Us

Share your knowledge in the forex community!

Our community is a completely independent place for communication between forex traders and software developers for trading platforms Metatrader 4 and Metatrader 5

Create A New Account
Home/ Questions/Q 852
In Process
rad89
rad89

rad89

  • 4 Questions
  • 4 Answers
  • 0 Best Answers
  • 20 Points
View Profile
  • 0
rad89
Asked: December 18, 20202020-12-18T09:51:24+00:00 2020-12-18T09:51:24+00:00

who can write an Expert Advisor for the intersection of a horizontal line set manually?

  • 0

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?

  • 8 8 Answers
  • 0 Followers
  • 0
Answer
Share
  • Facebook

    8 Answers

    • Voted
    • Oldest
    • Recent
    1. cop999

      cop999

      • 0 Questions
      • 1 Answer
      • 0 Best Answers
      • 22 Points
      View Profile
      cop999
      2020-12-22T07:03:04+00:00Added an answer on December 22, 2020 at 7:03 am

      Rad89:
      Here is found more or less similar, something. But this is on MQL4. what do you need here? When crossing the line, when it opens a position, add the function of
      setting the SL order inside the channel, as close to the border as possible. and also what would the adviser create

      pending
      order. I described the principle in the video. TP is excluded. No takeaways.

      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.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. dimeon

      dimeon

      • 2 Questions
      • 24 Answers
      • 0 Best Answers
      • 74 Points
      View Profile
      dimeon
      2020-12-18T09:52:06+00:00Added an answer on December 18, 2020 at 9:52 am

      Well, attach mt4orders. mqh and it will be under Mt5!
      In general, you need to apply to freelancing with such ideas ! 

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    3. alexeyvik

      alexeyvik

      • 1 Question
      • 75 Answers
      • 0 Best Answers
      • 182 Points
      View Profile
      alexeyvik
      2020-12-18T09:51:58+00:00Added an answer on December 18, 2020 at 9:51 am

      Rad89:

      See: Our EA initially placed two pending orders at launch. The first one is BUY_STOP on the line that we set ourselves ABOVE
      prices according to the schedule. Second: SELL_STOP, which was deposited on the line that we ourselves set on the chart BELOW the price. 

      In the future, when any of them is triggered (Let’s say BUY_STOP worked), the adviser is in the same place (well, of course, a little lower
      Bid), where the buy order was opened, places the SELL_STOP order. And in the same place he puts SL (well, again, of course, with a minimum
      the value that is allowed for setting SL). 

      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.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    4. rad89

      rad89

      • 4 Questions
      • 4 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      rad89
      2020-12-18T09:51:53+00:00Added an answer on December 18, 2020 at 9:51 am

      Konstantin Nikitin:
      codebase
      there are similar options for a wagon and a small cart. If you find something, you can talk to the author. Can he agree
      modify it.

      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)

         

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    5. iks_

      iks_

      • 1 Question
      • 29 Answers
      • 0 Best Answers
      • 78 Points
      View Profile
      iks_
      2020-12-22T07:03:04+00:00Added an answer on December 22, 2020 at 7:03 am

      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.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    6. laryx

      laryx

      • 0 Questions
      • 43 Answers
      • 0 Best Answers
      • 112 Points
      View Profile
      laryx
      2020-12-22T07:03:04+00:00Added an answer on December 22, 2020 at 7:03 am

      Freelancing will save the Giant of Thought and the Father of Russian Democracy…

      If, of course, someone will undertake…

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    7. rad89

      rad89

      • 4 Questions
      • 4 Answers
      • 0 Best Answers
      • 20 Points
      View Profile
      rad89
      2020-12-18T09:51:33+00:00Added an answer on December 18, 2020 at 9:51 am

      Alexey Viktorov:

      Further reading is pointless. I won’t even do this in freelancing, it will take longer to find out what the customer wants.

      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.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    8. alexeyvik

      alexeyvik

      • 1 Question
      • 75 Answers
      • 0 Best Answers
      • 182 Points
      View Profile
      alexeyvik
      2020-12-18T09:51:28+00:00Added an answer on December 18, 2020 at 9:51 am

      Rad89:

      The essence of the strategy is as follows:
      Manually set the trend line (ray). Expert Advisor when running on this line
      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 On
      the same line
      is placed by a pending order.

      …

      who is awesome at messing around in mql5?

      Further reading is pointless. I won’t even do this in freelancing, it will take longer to find out what the customer wants.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    Stats

    • Questions 514
    • Answers 2k
    • Posts 5
    • Comments 0
    • Best Answers 0
    • Users 921
    • Popular
    • Answers
    • Tags
      • On: December 18, 2020
      • Answers: 16

      How to allow trading at certain times

      • On: December 29, 2020
      • Answers: 16

      Example of implementing the OOP pattern Abstract Factory using MQL5 ...

      • On: December 18, 2020
      • Answers: 15

      EMA with a different formula

      • On: December 29, 2020
      • Answers: 15

      Invitation for algo traders.

      • On: December 29, 2020
      • Answers: 14

      Dear Programmers, do not pass by, help fix the error!

    • atma1
      atma1 added an answer Added activation. Thanks. April 8, 2021 at 6:54 am
    • iks_
      iks_ added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • renat
      renat added an answer Atma1: Good day, dear colleagues. Yesterday I updated VMware to… April 8, 2021 at 6:54 am
    • mvs
      mvs added an answer Renat Fatkhullin: You can not immediately send the received data,… April 8, 2021 at 6:53 am
    • anton_m
      anton_m added an answer Renat Fatkhullin: How much data do you read? You can… April 8, 2021 at 6:53 am
    analytics british company computer developers django employee employer english facebook french google interview javascript language life php proforexea programmer programs pro vsa salary university

    Users

    atma1

    atma1

    • 1 Question
    • 1 Answer
    s22aa

    s22aa

    • 1 Question
    • 1 Answer
    areedbreen

    areedbreen

    • 1 Question
    • 1 Answer

    Footer

    First independent community of traders

    About

    An independent community of forex traders. This is where traders communicate. You can ask your questions and you will receive an answer to your question.
    • Terms of Use
    • Privacy Policy
    • Cookie Policy
    • Knowledge Base
    • Support

    © 2021 Forexcommunity.net. All Rights Reserved