fxDreema

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

    Quick question about custom indicators

    Questions & Answers
    3
    9
    3072
    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.
    • isp00rt
      isp00rt last edited by

      Dear all,

      I would like to know how can FxDreema identify the value of a coloured custom indicator. Let me explain. I want to use the superprofit indicator at an EA. This indicator draws a continuous line (it looks like a moving average) on chart at the beginning of each new bar. Each new point of this line can be red or green, depending on the identified trend at that moment.

      If I include it as a custom indicator in my EA, how could I program that if the new point is green/red it should buy/sell?

      Thank you in advance.

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

        The same old issue again...

        Custom indicators have output buffers, which are arrays of data - 1 value for each candle. The EA is supposed to work with that information, the EA does not "see" colors, it sees numbers. What are custom indicators actually? They are code that fills those arrays with data and they also have some rules of how to display that data on the chart, so it can look as line, histogram, arrows or whatever. Again, there is 1 value for each candle in each output buffer.

        Use "Trace" to see what is inside the buffer you want to check: https://fxdreema.com/demo/mt4-trace-multiple
        When you see that you have some meaningful information, you can use the indicator properly.

        Maybe your indicator has one output buffer for each line that has different color. So, if the value at certain candle is for example 1.2345, the line is drawn there. To be invisible, the value is EMPTY_VALUE (which is some big big number, the biggest int number).

        If this is the case and one line has values either EMPTY_VALUE or price values, try "Indicator appear" to detect the appearance of the line or "Indicator is visible" to detect if there is a line at the chosen candle. Well, I normally use Condition (indicator > 0) instead of "Indicator is visible", because it is supposed to work faster (it works because if either value in the Condition block equals to EMPTY_VALUE, the block won't pass).

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

          I guessed this had been asked before, but I couldn't find any thread with this specific topic, sorry. 😞

          I will try what you suggested. Thank you very much for your help.

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

            Hi again,

            This is my first try to do what you suggested: https://fxdreema.com/builder

            Unfortunately, it doesn't work. I guess I'm not inserting the correct information at the "Indicator rise/fall" block. Before you ask me, no, there is no message at the "Experts" tab of my MT4. Apparently conditions are never met, so not a single buy/sell is executed.

            Let me explain what is this EA supposed to do. It traces a continuous coloured line on the chart (it looks like a moving average). Depending on the trend of price, two colours are shown: red (for downtrend) or green (for uptrend). I want to open a trade immediately after that colour is changed.

            Any help would be much appreciated. Thank you.

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

              I will be better if you give the actual indicator. Custom indicators are not uploaded to the server 🙂

              But again, you must know what's inside the output buffers of the indicator you are using. For example "Indicator rise" can be used for MA, but your indicator is not MA, even if looks like MA.

              If the indicator has 2 output buffers, one for the red line and one for the green line, and those lines alternate (when the green line stops, the red line starts), then this most probably means that while one of the lines is visible, the other line is invisible and its value equals to EMPTY_VALUE. So you can try "Indicator appear", which is designed to the moment when the value goes from EMPTY_VALUE to some normal value like the current price.

              "Indicator rise" is to look at the values in few candles, compare those values and decide whether they are growing or not.

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

                Sure, no problem. It's called "superprofit". I can send you a copy if you let me know how to upload it.

                timmyhanke 1 Reply Last reply Reply Quote 0
                • timmyhanke
                  timmyhanke @isp00rt last edited by

                  @isp00rt

                  Superprofit is one of ''Carl Dittmans '' scams , its repainting a couple of bars back , and thats why you have problems with it , because of past values 🙂

                  isp00rt 1 Reply Last reply Reply Quote 0
                  • isp00rt
                    isp00rt @timmyhanke last edited by

                    @timmyhanke said in Quick question about custom indicators:

                    @isp00rt

                    Superprofit is one of ''Carl Dittmans '' scams , its repainting a couple of bars back , and thats why you have problems with it , because of past values 🙂

                    I know it repaints, but if combined with other solid indicators is a good way to show the trend. Obviously I would never create an EA based on it only. 😉

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

                      Ok. This is a new structure based on your suggestion.

                      It almost works as I need. I just need a final additional feature. How can I create a variable for that buffer info? The EA now opens a trade immediately after the new colour appears. That's what I want, but I also need that if other conditions from other indicators are met AND the colour (i.e. the buffer info) is the one I'm looking for, a new trade is open. I'm thinking of adding that info to a variable, but I don't see how can I "catch" it.

                      Any suggestion?

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

                      Online Users

                      A
                      G
                      Q
                      C
                      T
                      S
                      A
                      M
                      R
                      G
                      G
                      Y

                      25
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors