fxDreema

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

    one candle rule

    Questions & Answers
    2
    7
    1743
    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
      svenw8 last edited by

      Hi, i am trading in daily time frame, sometimes my algo needs one more day to give me all the signals i need (volume for example). How could i code that with fxDreema? Is that possible?

      Regards

      roar 1 Reply Last reply Reply Quote 0
      • roar
        roar @svenw8 last edited by

        @svenw8
        One more day, what you mean? To get tomorrow's values today? 😄
        You get readings from any history candle with the candle ID setting.

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • S
          svenw8 last edited by

          I mean for example:

          my confirmation indicator crosses zero line and my other indicators are also good to go, but my volume indicator say no trade. one day later ( once a day opening) all my indicators are still good to buy ( but the confirmation indicator will not give the cross zero line signal again because it did it yesterday but the volume indicator now says volume is there) so i would like to take the trade.. you understand what i mean?^^ this happens maybe 2 of 10 times.

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @svenw8 last edited by roar

            @svenw8
            Create a parallel copy of your confirmation block, and set the candle ID to 2 (when the first confirmation uses ID 1)
            https://fxdreema.com/shared/XcD5FgRdc
            0_1577639429480_5ef01cf1-ca02-44e7-918a-f9f3f406d381-image.png

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            S 1 Reply Last reply Reply Quote 1
            • S
              svenw8 last edited by

              thank you very much for the help 🙂

              cheers and a happy new year

              1 Reply Last reply Reply Quote 1
              • S
                svenw8 @roar last edited by

                @roar one more thing, i did some backtesting and it works very nice. thanks again. but now i have one problem left, if it takes a signal to buy or sell and the sl hits before the candle id 2 it opens again a position. is it possible to say " if a buy or sell signal came, ignore the parallel block with candle id2?

                Thanks again.

                roar 1 Reply Last reply Reply Quote 0
                • roar
                  roar @svenw8 last edited by roar

                  @svenw8 Hmm, you might want to use a variable to address that. There are other solutions as well, but variables are the general solution to everything, lol.

                  • Create a variable barcount:
                    0_1577719210601_88057170-65c6-4ce4-ae21-a97424742281-image.png
                  • Then, set the variable to increase by 1 on every new bar, so the variable keeps track of passed bars.
                  • When opening trade, reset the barcount to 0
                  • Now you can make a condition: barcount > 2
                    This means that trades must have min 2 bars between them.

                  You can copy the blocks from my example, but you have to set up the variable by yourself, according to the picture above.
                  https://fxdreema.com/shared/AK0KcrCrb
                  0_1577719409895_59df2b71-80b5-4364-a2db-601a4d62153a-image.png

                  Need small help? Tag me in your post
                  Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

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

                  Online Users

                  S
                  C
                  F
                  W

                  13
                  Online

                  146.8k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors