fxDreema

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

    EA to identity the latest indicator output/buffer

    Questions & Answers
    0
    9
    775
    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.
    • T
      tmk1000 last edited by

      Hello everyone, I am new to fxdreema
      I want to build an EA that include this "Bettervolume" indicator.
      however, I want the EA to seek the latest indicator output within the previous candles/bars. Forexample in this instance the Red bar. I want the EA to go back or count back each bar until it find a red bar FIRST as the latest bar. the Red bar shouldn't come after the white bar. Please see the two images below that show when the command should Pass and Not Pass.

      0_1676054113576_Trading 1.PNG

      0_1676054125586_Trading.PNG

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

        Have you loaded the indicator into fxdreema?

        After that, the first step is to inspect the indicator buffers by creating a bunch of variables and commenting them out.

        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

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

          @roar Thank you for the reply it's already loaded with all the buffers. it's mlq4 not ex4. I just want the EA to enter trade when the candle crosses the 50 Ma and the Red bar is the most recent . I may add RSI later but I first just want this to work first. I'm only interested with the Red and White bars. for buy Red and for sell White. so once the candle x> 50 MA, it should look back and look for the red Bar. but the Red bar has to be the most recent not the white one

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

            @tmk100-0 if you have the mq4 file, next you should check the source code and try to find the buffer numbering, there is probably one buffer for the bar height and one buffer for bar color.

            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

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

              @roar Yes, I understand how buffer works and identify them.

              0_1676110274946_Trading 2.PNG

              my question is how do I identify the most recent red candle that is not followed by a white candle as I described above. in this picture I added there's only Highest and lowest value. is there a way to count? previous bars?

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

                @tmk100-0 I dont think that block is flexible enough for your purpose... I would create a loop that goes back candles, seeking for reds and whites by your conditions

                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
                • T
                  tmk1000 last edited by

                  I am not really good with loops can you help me? is there away for counting previous bars or candles? Let say the red bar is 5 bars/candles away from the current candle. That way if the red bar is let say 3 candles away and the white bar is 5 candles away, I can use the condition block. thank you

                  1 Reply Last reply Reply Quote 0
                  • T
                    tmk1000 last edited by tmk1000

                    0_1676229630886_Trading 3.PNG

                    I'm going to use this picture as an example.

                    we already have candle ID 0, 1,2,3, etc... which is use the identify the location of buffer to trigger a function. under "what to get?" however if there was an extra option that says: "Position of most recent value in Range of Candles" and under "Range: Value Type", there was : "nearest or furthest", This could be used to identify the buffer position by candle ID. For example: once you select indicator under the condition block, the should output the buffer location using the candle ID. For example: if it's an arrow indicator and the arrow appeared in 4th candle from the current candle, the block will output 4. if a crossover happened in the 8th candle, the block should output 8, etc... that way you can use these ID's on condition block to compare them.

                    if there's already a way of doing this please can someone help. thank you

                    1 Reply Last reply Reply Quote 0
                    • T
                      tmk1000 last edited by tmk1000

                      I tried to delete the previous comment for a new one it didn't allow me so I Edited it.

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

                      Online Users

                      K
                      F
                      C
                      E
                      F
                      D

                      12
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors