fxDreema

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

    Using Supertrend Indicator

    Questions & Answers
    4
    22
    9115
    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
      thomas_stock last edited by

      How can I integrate the Supertrend indicator?
      I want to buy when the current candle is above the Supertrend.
      Of course with other conditions, but in any case with the one mentioned above.
      But I don't get a signal.

      0_1546941206230_super.jpg

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

        0_1546943686398_9397a9ac-a192-4658-9c2f-9d5ec84824d0-image.png

        https://fxdreema.com/tutorial/builder/things-not-to-do

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

          Supetrend is superlame. Simply don't use it. It repaints up to the last three candles.

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

            I need the Supertrend to point the way. I.e. if the super trend is long, I only go long with my other indicators.
            So I never act against the Supertrend indicator.
            Therefore I need a signal if the Supertrend indicator is long or short.

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

              Is it possible to enter and calculate the formula of the Supertrend indicator?
              But I have no idea how to calculate it.

              0_1547207733302_super2.jpg

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

                So, you think that the indicator doesn't work. You tested it with Trace block?

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

                  Yes. I have no signal.

                  0_1547291841515_trace.jpg

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

                    Sorry, it´s the Donchian Channel, but I have the same problem with the supertrend indicator. No Signal.

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

                      There is a value of 0, this is what the indicator returns. I tried this one, because I don't have your version - https://www.mql5.com/en/code/11162 - and it works. Why yours is giving you only 0... I don't know, depends how it is written, maybe this is intentional. But try with different Candle ID

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

                        Hello, thanks for your help.
                        I just don't get a signal with the custom indicator.

                        I don't get a signal for buffer 0-2.

                        Where is the error ?

                        0_1547805337899_super screen.png

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

                          The value of 0 is the value that is returned by the indicator, I don't think that there is an error. Those indicators who return 0 are actually rare, normally the returned value (where the indicator doesn't show anything) is EMPTY_VALUE, which is some big integer. In other words, I see the value of as very intentional, the developer selected that value to be returned. If there was an error, I don't think that you would see 0.

                          Try with Candle ID bigger than 0.

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

                            Thanks for your help.
                            I have already played with different values.
                            I just don't get a signal.

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

                              Do you see any lines of this indicator. On your screenshot I don't see any, and I think that this indicator should place some lines above and below the candles. If you see those lines, are they indicator lines (cannot be selected) or are they trend lines (objects)?

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

                                Hello,

                                these are indicator lines.

                                My idea is actually quite simple. I want to check if the current candle is above the yellow line (long) or below the purple line (short).

                                Depending on this, I want to go either long or short.

                                Other indicators are also used, of course. But that would be my main reason.

                                I hope this is understandable.

                                0_1549464523351_superscreen.jpg

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

                                  Hello fxDreema

                                  Would it be possible to create an example ?

                                  You can take any super-trend indicator.

                                  Condition:

                                  If the current candle is above the (yellow) super trend indicator, then long.
                                  And vice versa. (pink line)

                                  It must be possible to query the value somehow.

                                  Thank you for your help in advance

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

                                    Depends on the buffers. https://fxdreema.com/tutorial/builder/indicators
                                    Is this indicator available on the internet?

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

                                      Here ist one version with 2 buffers.

                                      https://www.forex-indikatoren.com/super-trend-indikator/

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

                                        This indicator works fine. If one of the line is not visible, the value in the buffer is EMPTY_VALUE, which is expected. Note that if one of the two sides in "Condition" equals to EMPTY_VALUE, then the block doesn't pass.

                                        So I used "Indicator appear" to detect line changes, it works. Well, if I use candles 0 and 1 I detected false signals... it looks that the indicator repaints a little bit. So I used candle 2:

                                        0_1550588521655_6526c6de-9107-488a-87cd-2e415ef53712-image.png

                                        To do the same with "Condition" block is a little bit tricky, but I did it like that:
                                        0_1550588467350_b920de11-121b-4d73-9681-800579c21ae7-image.png
                                        Normally you should not use == to compare prices, but in this particular case I was able to use it.

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

                                          It doesn't work for me. Maybe I'm doing something wrong. Anyway, thank you for your help.

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

                                            But why it doesn't work, you have error messages?

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

                                            Online Users

                                            N
                                            S
                                            T
                                            A
                                            Y

                                            20
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors