fxDreema

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

    Entry 20 pips over the 14 Moving Average Line

    Questions & Answers
    3
    26
    4787
    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.
    • M
      Markre last edited by

      Hi, i need Help...i am search and search but I find nothing in the "Conditions" Block 😳 .

      I need an Entry then the Candle is 20 pips over the 14 Moving Average Line, ist this possible?

      THANKS

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

        I think, i have found it:

        topic/2041

        "You can see "Adjust" on many places (Condition block and Condition-like parameters in other blocks). Write there something like "+0.0001" or even "+1pips", and it will add this to the value (for example, it will add 0.0001 to the Close(0))."

        Is this the best Way?

        Thanks

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

          This is the way. Maybe not the best, but the fastest 🙂

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

            T H A N K S and H A P P Y N E W Y E A R!

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

              Happy New Year to you! 🙂

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

                Another Question ❓ Is it possible to set this parameter (Adjust) for Optimizing? In the Moment there is no Function to set this.

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

                  This is not a simple parameter, this is part of the MQL4/MQL5 code. It's content is not just simple "123" or "iamvariable", it can be a complex formula. Input parameters of the EA are simple variables with their values. But you can define a Constant, it will become an input parameter for the EA, and use it in Adjust with it's MQL name.

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

                    The Problem is, what must i do to define a Constant?

                    https://fxdreema.com/shared/hVidQejRc

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

                      I will suggest the description of "Condition" block 🙂 3 is not a correct value for "Adjust", because unfortunately, this input field cannot read our minds and it does not know what 3 is - 3 apples, 3 pips, 3 pips above, 3 pips below, 3 whatever....

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

                        😳

                        OK, now there are run
                        https://fxdreema.com/shared/z9pD1c1R

                        but how can i can define a Constant?

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

                          Some guys are writing to me that the documentation is poor. From now on I will tell them that nobody reads it anyway 🙂 https://fxdreema.com/documentation/proj ... 0variables

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

                            I am stupid 😏

                            https://fxdreema.com/shared/E7w3UN16e

                            What is wrong? i have no idea!

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

                              OK, if i use a Constant with Lot Size, TP oder SL it is no Problem, but here i become the follow Error:

                              (491,90):error 152:adjust- some operator expected
                              esult: 1 error(s).... ⚡

                              https://fxdreema.com/shared/VgjmV6zIc 😏

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

                                Well, this is the problem with this field, it does not accept constants like this 🙂 Because you can write anything in there, and normally you write something like +0.010 or -0.020 or +2*10/100 or whatever. So if you want to use the constant there, write it's name manually. In your case +adjust.

                                And no, constants and variables cannot be +0.0020, meaning that the + sign is addition operator 🙂 Only values are accepted and this is by MQL.

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

                                  Yes, my first EA runs 😛 - thanks... but i have a last problem. In the 1 Minute Test the EA sell over the SMA14 (+2Pips) (all right!). The Problem is, then the Position Close by TP the EA open instantly a new Position %(#FF0080)__ the SMA14. This is wrong.

                                  Have you a idea? Thanks

                                  (Project:"Tja")

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

                                    You have Candle High > MA+2pips. Candle High stays high until the end of the candle, it will only become higher. Your MA is set to the close price, so what happens, I guess, is that Candle High is always higher that this MA.

                                    Try with Candle Close instead.

                                    You also don't need this "Once per tick" block, it is used for another scenario. This block is just a filter. Your blocks are already under the "on Tick" event.

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

                                      Hi!

                                      I'm trying to do something simillar but it won't work... I set buy orders if price is above EMA 100 (plus other conditions) but don't want the order to open if the price is only 10 pips above the EMA.. I tried it now multiple ways but it still doesn't work... I tried also the way it was explained at the beginning of this thread - set adjust...but as I see it on the trategy tester..the ea just ignores it...

                                      adjust.png

                                      So this is how I put it in...or am I doing it wrong? The ea just ignores it and still opens position when the price is directly on ema...
                                      Any ideas?

                                      Thanks...

                                      ......
                                      adjust.png

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

                                        +0.0010 will work better 🙂 This field is not aware of what type of value the operand is... and now that I am saying this, maybe it's not a bad idea if it can be aware 😄

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

                                          Thank you...I also wanted to try this before..but then i thought...on EURUSD for Example..0,001 is really 1 pips..but what for ex.USDJPY..1 pips is 0,01 or do I understand this wrong - isn't it dependent on the currency? Or is the number here something else - different when writing a code for ea? 😉 really don't know...?

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

                                          Online Users

                                          S
                                          O
                                          S
                                          A
                                          N
                                          J
                                          S
                                          K
                                          A

                                          19
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors