fxDreema

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

    Help with condition.

    Questions & Answers
    3
    8
    2320
    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.
    • V
      valleyfx last edited by

      Hi, i'm making an EA for M1 to catch 380 ~ pips, it's working fine, but i have one condition i want to implement but i don't know how.

      The condition :
      to Open Sell : 540 pips above the last bottom in 200 candles.
      to Open Buy : 540 pips below the last top in 200 candles.

      I have nothing to share cause idk how to do it, i've tried but nothing ;/

      thanks by now!

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        try this:
        https://fxdreema.com/shared/EsAZGPzvc

        maybe is here some automatic conversion from price fraction to pips, but for me was not working
        why this, because if price is for UJ 120.0 and lowest is 119.0 (difference 100pips) it is 120-119=1.0 .. price fraction 1.0=100pips ... and in my example you give into input 1.0 (which mean 100pips)
        EU exaple: price is 1.05 ... highest is 1.06 ... for difference fraction 1.06-1.05=0.01 ... fraction 0.01=100pips in EU ... so for those pairs you give into input 0.01 (for EU 540pipís is fraction 0.054, and for JPY 5.4) ...

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • V
          valleyfx last edited by

          Miro! Thanks for your help, Unhappily i lost all my project,
          I thought the software was savubg everything in history and i lost my project ;/, i'm so sad for it, i was an entire afternoon doing that, the only think was lost is the answer you gave me ;/. well, thanks anyway. i'll implement it in future codes 😄 . stay cool.

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

            What do you mean you lost the project? I'm aware that sometimes all blocks become black and I still don't know why that happens, but if such thing happens, you can click on History and move 1 step up where everything should be fine. Well, if you hit "Delete", then it's a little bit harder to restore it 🙂

            1 Reply Last reply Reply Quote 0
            • V
              valleyfx last edited by

              I've made a nice EA, but i tried to just optimize some things, i changed 1 or 2 blocks and when i tested was all wrong :X then i tried to go in history, but i changed to many things and it was not in history anymore. but it's ok. i'm working in something better now :D.

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

                I think I set the history to contain 15 steps at most, because the database is now huge 🙂 But I changed it a little bit, so for example if you connect 2 blocks, this does not produce a new step, instead it writes on the current one. You can always use that check circle in front of each history step, which means that this step will remain in the list (similar to Photoshop). It's also a good idea to save .mq4 files from time to time, just in case 🙂

                1 Reply Last reply Reply Quote 0
                • V
                  valleyfx last edited by

                  yeah, i learned the hard way 😛 but it's ok, this project is better than the other!

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

                    I also write something initially, then when I rewrite it the result is always better 🙂

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

                    Online Users

                    E
                    G
                    M
                    C
                    E
                    L
                    K
                    E
                    S
                    E
                    P
                    G
                    R
                    N
                    S

                    29
                    Online

                    146.7k
                    Users

                    22.4k
                    Topics

                    122.6k
                    Posts

                    Powered by NodeBB Forums | Contributors