fxDreema

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

    Series of candles

    Questions & Answers
    3
    4
    305
    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.
    • S
      SirLuk last edited by

      Hi. I would like to make a condition, that passes, if the 10 and 15 EMA cross the 50 SMA somewhere between lets say candle ID 20 and 50. is there a way to do this in a simple way, or do I really have to make a condition for each candle ID? Thanks for your help.

      jstap TipsyWisdom 2 Replies Last reply Reply Quote 0
      • jstap
        jstap @SirLuk last edited by

        @sirluk You could use flags so when MA crosses it's set to true so when the next crosses a trade is placed, make sure the flags are reset, also when a MA has crossed it becomes above or below so when another crosses both are in the place you need.

        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 1
        • TipsyWisdom
          TipsyWisdom @SirLuk last edited by TipsyWisdom

          @sirluk said in Series of candles:

          Hi. I would like to make a condition, that passes, if the 10 and 15 EMA cross the 50 SMA somewhere between lets say candle ID 20 and 50. is there a way to do this in a simple way, or do I really have to make a condition for each candle ID? Thanks for your help.

          you could draw up a loop code, constantly looking over the last X to X candles. 1 block to rule them all....well, like 3 or 4 would be needed in total...But theres a project in tutorials. ZigZag, written by Miro. He uses a loop in there.

          S 1 Reply Last reply Reply Quote 1
          • S
            SirLuk @TipsyWisdom last edited by

            @tipsywisdom that sounds like it could work. Thanks a lot!

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

            Online Users

            M
            M
            E
            Y
            L
            F
            S
            F
            N
            S

            23
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors