fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Two line cross over

    Questions & Answers
    2
    4
    1794
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fahim last edited by

      I would like to request this communities help with following 2 problems:

      1. I want to create a basic EA with following condition:

      If (Indicator signal line (Red) x> Indicator base line(Blue)) then buy at the open of next candle (not at the candle that crosses).

      That way i want to ensure the crossover is real and not fake.

      1. I want to put stoploss and take profit based on ATR. For example TP 2 ATR and Stoploss 1ATR. I want this to be dynamic and not a fixed amount

      Your help is much appreciated

      that
      ![0_1552040109111_c0abc325-46a2-4439-80d7-0b54b00c5562-image.png](image url)

      1 Reply Last reply Reply Quote 0
      • F
        fahim last edited by

        For stoploss, this is by the way how i have setup the EA so far, but it does not work

        0_1552041561999_59a8ebff-f19a-4b86-b78d-554b4d3573e3-image.png

        1 Reply Last reply Reply Quote 0
        • F
          fahim last edited by

          I just fixed the stop loss the way i wanted, but noticed one more issue.

          The EA should take a trade when 2 indicator lines cross each other, you can see this in first 2 examples happining, but the 3th and 4th time EA does not take a trade.

          Anyone any suggestion?

          0_1552050121173_2fdc2a42-7460-43eb-a5a8-3c6086b876d3-image.png

          0_1552050230118_f10e1df8-579e-4f19-bfce-3a9bc77ce85c-image.png

          1 Reply Last reply Reply Quote 0
          • fxDreema
            fxDreema last edited by

            For finished crossover, use Candle ID = 1.

            For ATR stops, use Custom (price fraction) instead of Custom (pips). I call these values such as 0.0010 price fractions, because if you imagine all prices in a vertical line, small part such a 0.0010 is like a fraction of the whole... if that makes sense 🙂

            The condition block should not care about past signals at all, this block check the values at the current moment only. I don't see reason for it to work 2 times and then to fail. Check if you have any error messages. Also put Trace block to see the actual indicator values, in case something is wrong with the indicator. It also depends on other blocks, if you have

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            E
            H
            E
            M
            E
            N
            F
            E
            R
            S
            E
            G
            P
            K
            A

            23
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors