fxDreema

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

    How do i check if distance of 2 EMA its increasing or decreasing??

    Questions & Answers
    0
    4
    428
    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.
    • Y
      yakusho last edited by

      0_1676411839718_USDJPYM30.png

      RED-EMA:600
      GREEN-EMA:300
      BLUE-EMA:90
      YELLOW: 5

      i was trying to do this:
      between two periods of 30 candles for example...you can see like yellow and red get distance like green and blue...what im trying to get..its to take chance and increase take profit while it increase...so i can reach bigger profits...and close the trade when there a cut between two of the intended EMA..to open trade and to close it i know its easy to determine..

      but how i increase the take profit and also reach for a breakeven by the diff of the checkpoints..and how i do compare...the check distance between EMA..from the opened trade..and the next checkpoint period..

      i think this it quite good idea..but im lost a lil bit...i guess i should save on a variable..first the opening point...and the checkpoint distance value between the EMA.if its increasing after the first checkpoint and a second one do what i want to do..if its decreasing just wait the breakeven(i also dont know which point or how to save teh bigger profit)

      what i mean...i guess its: every N bars..if EMAs distance increasing do duty..

      aww..im confused...i think i must consult with the pillow

      here another image:
      0_1676413634134_USDJPYM30_2.png

      jstap 1 Reply Last reply Reply Quote 0
      • jstap
        jstap @yakusho last edited by

        @yakusho If you check if MA is < or > you can - high from low and save in a variable, this will give you a value that you can use fro distance. There is a block called check distance, you could check and when true modify a variable to change the value used for BE etc, if false check distance in another block and modify variable to a different value.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 0
        • Y
          yakusho last edited by

          0_1676467168354_3774ada4-c317-40d3-bf03-76286253d03d-image.png

          ok, but it seems i wont get a return value from the check distance to know the exact distance diference..it seems i can compare if its increasing..altho i guess i can do it textual, maybe.

          for example on the buy chance of the last pic on the Q. as im coding, EM5 ist over EMA600 if true then when EMA5 cuts up EMA300, open trade. then i would like to check if EMA90 distance is increasing against EMA600, if true increase take profit and change breakeven by %TP, and i guess to stop trade if EMA5 cuts down EMA90..close trade...but lil later the EMA90 distance against EMA300 and EMA600 its decreasing and it recieve another open trade signal..when EMA5 cuts up EMA300 but just for low peak...so it will open..but ill close it cuz i should recieve an decreasing signal..between EMA90 and EMA600

          0_1676468018725_79da3f9d-867b-4143-a505-6b20418adb9e-image.png

          i think its it the most complest bot id tried to make..i guess the low peaks..are the trouble..but ill try to profit some pips from them

          l'andorrà 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @yakusho last edited by

            @yakusho You can store the value of both MA in different variables and then calculate the distance via 'formula' block. Just repeat the calculation every new candle and compare the sum result every new candle. If the sum is bigger now, you got it.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

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

            Online Users

            N
            J
            H
            M
            P
            A
            E
            M
            E
            S
            E
            E
            M
            P

            19
            Online

            146.8k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors