fxDreema

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

    Can someone help me with SL calculated form wick?

    Questions & Answers
    3
    13
    2121
    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.
    • T
      Tom 5 last edited by Tom 5

      Hello guys,

      can someone help me please, because i dont know in this case how to get it as easy as possible.

      My part-target for my EA idea is to find the lowest wick of the last n candles in the past and choose them plus aktual spread as SL.

      E.g. i get a signal for the EA for BUY.

      1. Now i want from the last candles id 1,2,3,4,5,6,7,8,9,10 ... (which i can choose later in the EA to optimize), the lowest bottom wick , plus (minus actual spread) i want that he takes as SL.

      Can you maybe help me? I could make it maybe complicated, by IF Candle ID1 bottom wick < Candle bottom candle wick 2, -> else ... but this looks to me too complicated. I believe it would work but not effektiv. Also i dont know how to add the spread to it.!

      Is to choose the lowest price of n candles here the best way? If yes, how do i put the spread to it to get a SL=

      1. and another question is, if i want to use the difference of BUY to SL as % for a % lotsize e.g. 0,5% of balance, how can i use it? I tried so many things now, but i think i have a thinking problem.
        0_1574957556746_517a6d98-f9e0-4cb7-a323-2c9e62d91fe4-grafik.png

      Thanks a lot for your help!

      "First learn! Then earn!" or "As more you learn, as more you earn."

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

        https://fxdreema.com/shared/MSVGgE0Gc

        0_1574959218890_9dfc3646-f7b2-4228-8d9b-61ec0ebe2fce-image.png

        0_1574959720702_30eecfc2-8c40-4394-a9fd-8e6a59be3723-image.png

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

        S 1 Reply Last reply Reply Quote 0
        • S
          seb 0 @miro1360 last edited by

          @miro1360
          So the point of the blocks ID's is (beside identifying them for counter reset) : When there are 2 different paths/blocks, coming out a block, the one with lowest ID is executed at the tick X, and the second one at the tick X+1 ?

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

            all blocks are executed at the tick X, but the order of path execution depends on the ID (lowest first) ... did you get it?

            the example above goes as:
            8-9-10
            11
            12-13-14
            16
            20
            21-22 or 21-23
            ... everything in one tick (if an execution time is less as the time between 2 ticks)

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

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

              here the execution is as:
              8-100-10
              1
              21-22 or 21-23
              11
              2
              12-13-14

              0_1574965948862_2194298f-c3cd-4a59-82c4-997c621f3c3e-image.png

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

              S 1 Reply Last reply Reply Quote 1
              • T
                Tom 5 last edited by Tom 5

                Waow, thanks for the answers.

                So i am happy that my question wasnt so stupid when i see the work you putted in to realise it.
                Thanks a lot btw.!

                Havent tried it out atm, but will do it later.

                What i found out, but havent tried because i am not at home to get on my MT4 is, to look for the lowest price of the last n candles.

                Do you think this can work too? Or do i think wrong? I mean the lowest price also must be the bottom wick or? 🙂

                0_1574971315161_2b3aaef8-1e31-4917-af4d-2b60d12cdd3c-grafik.png

                As i said i havent tried it out, but if you say this does not work, and i have a logic thinking misstake, would be nice to know what i made here wrong 🙂

                "First learn! Then earn!" or "As more you learn, as more you earn."

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

                  @miro1360
                  Oh right i see, with your 2nd exemple, it executes the blocks of the right "branch" first...
                  I didn't think it could execute every blocks of an EA in such a short time.

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

                    @tom-5
                    you are exactly right, I totally forgot about this option in the Martket properties, you can use it this way .... anyway if you come to a stage where you need more detailed logic then you already know how

                    @seb-0
                    it can execute 1000 of simple blocks in one tick as well as one very complicated custom block may need a few ticks to execute 😄 ... the above are very simple blocks (light blocks, easy to calculate)

                    a complicated block is something where EA has to use many array calculations (e.g. complicated work with zigzag) .... or a bad or overlooped logic 😄

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

                    T 1 Reply Last reply Reply Quote 1
                    • T
                      Tom 5 @miro1360 last edited by Tom 5

                      @miro1360 thanks a lot for to let me know that this will work. And btw. i learned a lot from you in the past - thanks for your qualified answers and to share you knowhow with us!

                      Can you maybe share you example you made so that i can open it and look into it, because i havent worked with variables and formular s so far. Would be a help for me 🙂 thanks in adavance!

                      "First learn! Then earn!" or "As more you learn, as more you earn."

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

                        In my first reply is the shared link. Generage mql4 from that and then import the generated mql4 file into your projects.

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

                        1 Reply Last reply Reply Quote 0
                        • T
                          Tom 5 last edited by

                          @miro1360 thank you 🙂 Still have to learn a lot. I am good in manual trading but still have to learn bit of the logic you use here. Saw first time how you use the field "adjust" and so on - but still have to look how you did it, but with it it looks like that the possiblities are endless.

                          "First learn! Then earn!" or "As more you learn, as more you earn."

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

                            the possibilities are endless if the effort is endless 😄

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

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              Tom 5 @miro1360 last edited by

                              @miro1360 said in Can someone help me with SL calculated form wick?:

                              the possibilities are endless if the effort is endless 😄
                              Or as i always say to my students "as more you learn as more you earn" 🙂 Nice to meet you btw. 🙂

                              "First learn! Then earn!" or "As more you learn, as more you earn."

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

                              Online Users

                              V
                              O
                              J
                              B

                              22
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors