fxDreema

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

    Custom Indicator, Looking Candles Back, Etc...

    Questions & Answers
    3
    9
    3441
    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.
    • K
      keydcuk last edited by

      Hello,

      I have been looking on the forum for an answer and I thought that I found it at one point but I am still struggling.

      Basically, I think that the attached screenshot is more understandable than what I can ask here.

      I have tried working with indicator is visible but don't know whether I should be working with indicator within limits. It appears that both have a candles to look back feature.

      If I can get this right, I think that the difficulty will be in isolating the candle that produced the indicator signal and then telling market to buy when price moves above that specific candle's high or vice versa.

      As similar problem will appear at close when I want to program the EA again to look back candles to close when price is lower that low of candle which produces semafor 3.

      I am pretty clued up with everything else as I did get this indicator to trade buys and sells off the signals (or should I say buffers), but there I don't know how to produce the line break conditions to enter trades the way I really want to trade the indicator.

      Please help.

      Many Thanks & Best Regards,

      Daniel

      ......
      Screenshot_1.png

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

        Indicator is visible now works the same as if you have the indicator in Condition. If one of the sides in Condition equals to EMPTY_VALUE, then the block does not pass. EMPTY_VALUE is the value that is used by indicators when their buffers must be not "visible".

        Indicator moves within limits is the only* block that can look back in the history. All the other blocks are looking in particular candle or two candles when crossover is used.

        • Only for custom indicators in Condition -> My Indicators you have some extra settings in More Settings. Some of them are looking for data back in the history.

        There are 2 ways to deal with signals:

        1. At the current moment look for data in the current or past candles and decide what to do. Do this on ever tick.
        2. While the EA is working and you are searching for signals that must happen one after another in the time, you can use one or more Variables to keep the current stage of that searching in memory. On every tick check the value of that Variable and do something depending on that value.

        I recently added some method of doing 2) without Variables. Look at this: https://fxdreema.com/demo/mt4-wait-crossovers But note that I still don't have reports from people using this method.

        1 Reply Last reply Reply Quote 0
        • K
          keydcuk last edited by

          Seems that the crossover option in conditions is working but it is not without fault.

          In some instances, it misses out on very significant crossovers and I don't know if it has to do with my settings and programming but without being big headed, I am doubting this as I have been very scrutinous every step of the way.

          I attach a screenshot of only once instance it didn't take a trade. I don't know if the EA is too busy thinking about which buffer the current candle is on while it should be looking at the crossover at market price? I don't know.

          Could you explain what is the cross width as well? Is this a candle count or pip count or what?

          Thanks,

          Daniel

          ......
          Screenshot_1.png
          Screenshot_2.png

          1 Reply Last reply Reply Quote 0
          • L
            Liovannix last edited by

            Deleted

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

              keydcuk, when looking for crossover, 4 values are compared from 2 candles. 2 values from the chosen candle and 2 from the previous one. Well, it's the previous candle only if cross width is 1. If it's 10, then that previous candle is candle 10, not 1. So with this setting you can skip few candles. But note that they are really skipped, it's like they does not exists, they does not participate in the calculations. If you don't need that, don't change this cross width thing.

              1 Reply Last reply Reply Quote 0
              • K
                keydcuk last edited by

                Right, after having tried several methods of opening buys and sells on the EA I am creating, I have realized that the range candle ID seems not to be working as it should. If you look at the screenshots, I have set the range of candles to look back between 1 to 10. The issue that presents itself is that the buffer signal appears and a buy gets entered on the same candle even though I have told it to look between candle ID 1 to 10. It did not even give the signal a chance to appear and wait one candle that it has opened on candle ID 0, the current candle.

                Am I not understanding this function in more settings?

                Obviously I am not looking at the No. 3 on the chart, it is a tiny orange No. 1 that is hidden behind the buy open.

                Thanks,

                Daniel

                ......
                Screenshot_1.png
                Screenshot_2.png

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

                  This indicator is so slow, it even crashed my MT4. When I'm checking it's Buffer 1 it shows values like 0 or 0.00005. I don't know what they mean, but these values doesn't look to be prices. You can use Comment or Trace to see the values as well.

                  1 Reply Last reply Reply Quote 0
                  • K
                    keydcuk last edited by

                    I don't understand. What does this have to do with candles looked back? It is this part of the block that doesn't work. I tell it to take signals from range candle ID 1 to 10 does that not mean from candle ID 1 to 10 and not the current candle ID 0?

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

                      What "looking back" means to you? This is to walk in each candle one after another and look at the value of the indicator for each candle. But if the value is like this, what can you expect 🙂

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

                      Online Users

                      L
                      S
                      A
                      F

                      13
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors