fxDreema

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

    Help with Trading Conditions in Renko

    Questions & Answers
    3
    9
    4863
    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.
    • J
      juxta14 last edited by

      I'm trying to code a EA using 2 different sizes of renko blocks.
      The big block formed with 10 pips: and small block formed with 5 pips. When the previous big block closes above Parabolic Sar indicator and when the previous small block closes above Parabolic Sar, if there is no trade then EA should Buy.
      Can you please show me how this will look like in fxdreema.

      Thanks

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

        just use Condition block for your conditions, connect more blocks togethed and it is 😄 learn it on something easier and step after step, combination after combination you can do your work ... dont forget test in tester all changes you did 🙂

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

        1 Reply Last reply Reply Quote 0
        • J
          juxta14 last edited by

          Ok here is a detailed explanation and what I have done so far
          0_1484638503437_Renko Charts.png
          Above is a renko chart of EURUSD, left chart was made with 7 pips while the right was made with 14 pips and they both have Parabolic sar indicator applied to them.
          Now the trade idea am trying to code is when both charts have PSAR indicator below the last candle a Buy trade should be placed and when they both have the PSAR above the last candle a Sell trade should be placed.
          Here is my code for Buy trade https://fxdreema.com/shared/E8b22extd

          Now it is not trading.
          How can I fix it pls?
          The challenge I think is because it is on 2 different charts or what do you think?

          Thanks for your help

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

            this:
            0_1484666848691_upload-b277bd0b-ab2e-4a14-88c2-5bc3a7555d6b

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

            1 Reply Last reply Reply Quote 0
            • J
              juxta14 last edited by

              Thanks for prompt response. I will try that.

              1 Reply Last reply Reply Quote 0
              • J
                juxta14 last edited by

                I have implemented what you said above and it works great. Thanks.

                Still on developing this EA I have another question. Looking at the chart below
                0_1484842959894_Renko Charts 3.png
                The left chart is the smaller time frame while the right chart is the bigger time frame. My idea is to trade using the bigger time frame as the direction and the smaller time frame for entry. So when the bigger time frame gives a sell signal ie PSAR is above price and PSAR is also above price on the smaller time frame then EA should sell.
                Here is my code https://fxdreema.com/shared/iNEWjjAfc
                ( Note: Just an example code, I know I have to change the TF to match the renko charts in order for it to actually trade. )

                EA will sell on the small TF at signal A, B and C, but this is NOT what I need, what I need is for EA to sell just once at the very first signal which is A and not sell at B or C.
                What condition do I have to put to make this possible?
                Thanks for all your help on this forum.

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

                  here are many ways how to do this ... take inspiration from this cross example:
                  https://fxdreema.com/demo/mt4-psar-reversals

                  or do crossover using own blocks (compare candle close with psar value), and set candle IDs for 1 candle into history (because sometimes I noticed reapainting on previous candle on psar)

                  EA logic can be:

                  • once per bar: controling bigger renko cross, if cross happens - save it state into flag (if buy condition - flag is 1, if sell condition - flag is -1)
                  • if flag exist, check flag state and check lower renko, if all is true, buy or sell and flag set to 0
                    ...

                  because of using once per bar, EA is waiting for next bigger renko cross where flag will be changed to 1 or -1 (depending on trade direction)

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

                  1 Reply Last reply Reply Quote 0
                  • J
                    juxta14 last edited by

                    Thanks you've given me some idea.

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      Peak @juxta14 last edited by

                      @juxta14 Hi... Did you created EA based on Renko charts? I need to create EA such that if there are 2 same coloured brick then we need to buy / sell and if the colour changes in the complete of next brick then sell it.

                      My brick size would be 20.

                      Possible to help me out?

                      Thanks in advance.!!!!

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

                      Online Users

                      S
                      M
                      P
                      E
                      E
                      M

                      15
                      Online

                      146.8k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors