fxDreema

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

    Custom indicator

    Questions & Answers
    3
    13
    3660
    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.
    • ekanters
      ekanters last edited by

      Most important thing in trading is hold on to your dollars. That is more important than making profits. Since divergence could indicate a rversal or correction is about to happen it makes a lot of sence to protect your dollars. It doesn't mean a trend reversal at that moment because divergence often builds up before anything happens.

      So in case of divergence I would like the EA to place the trade at break even in case its trading in profit. Simply said: Protect your money at all times.
      There are a lot of divergence indicators out there so not asking which one I should use but I can't figure out where to place it and how.

      Hope you can help me here. A picture is attached to make things clear.

      ......
      gbpusdmicrodaily.png
      Div_Indicator.png

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

        I the last version I removed "Signals" block, I decided that it's not a good idea to be used.
        Custom indicators gives information to the EA. You must know which buffer to use. There is a block named "Levels tester" (I renamed it to Indicator tester" in the last version) that is used to check indicator buffers. Knowing what's in buffers "Condition" block can be used or some of the blocks in "Indicators" category.

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

          I am not the smartest when it comes to programming although I am getting the hang of it a little. However I do know quite a few things when it comes to trading and this divergence thing is a bit of a pain. Could you give an example how you would do this?? Just to get me started in the right direction. Would be awsome if you could 🙂

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

            And this indicator can be downloaded from....?

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

              It was a free download. So files attached.
              But I have to say I like the CC_divergence indicator a lot more. Also Attached. (weblink http://codebase.mql4.com/source/17351 )
              Thanks for giving me hope 🙂

              ......
              RSI Divergence.mq4
              RSI Divergence.ex4
              CC_Divergence_v1.0.mq4

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

                As I expected, buffers of those indicators cannot be used, but there is a plan B - working with objects: http://fxdreema.com/shared/47PHHoIZc
                I used a little bit of this (see where OBJPROP_STYLE is): http://docs.mql4.com/constants/objects/properties

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

                  Well you gave me some homework. Will be buissy with that for a while. 🙂

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

                    I am getting the Idea slowly but steady. Have also replaced draw arrow with breakeven block and that is working as well.
                    Oh once per bar was set on a 30min TF in this 4hr chart. Reason of the many arrow.
                    Thanks for pointing me in the right direction. Now the real stuff can be put together 🙂

                    ......
                    test.png

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

                      The signal (when all conditions are right) lasts for 1 bar time, because of it's nature, so I used "Once per bar" to filter only the first time that all conditions are right. If different timeframe is used for "Once per bar", it will "reset" at different time - sooner or later - and you will see more arrows in the same candle or more arrows on a different candle.

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

                        Now you have done it to me. You have opened pandora's box and I love it.
                        Did I tell you... YOU ARE AWSOME 🙂

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

                          __Now you have done it to me. You have opened pandora's box and I love it.
                          Did I tell you... YOU ARE AWSOME :)[/quote:2szukhc7]

                          Everything can be better, always 🙂

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

                            By the way, normally an EA should work with indicator's buffer(s) and the last project was some kind of hack because for this indicator (in both actually) buffers are useless.

                            1 Reply Last reply Reply Quote 0
                            • F
                              fxdreema301413 last edited by

                              PLEASE PROVIDE EASY METHOD FOR STOCHASTIC DIVERGENCE DO SOMETHING ON THE EXISTING DIVERGENCE INDICATOR THAT IT SHOULD GET VALUES FROM THE EXISTING BUFFERS

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

                              Online Users

                              L
                              S
                              A
                              F

                              10
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors