fxDreema

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

    Getting values from other Indicators

    Questions & Answers
    5
    58
    13214
    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.
    • Zackry
      Zackry last edited by

      Is it possible to read "int" & "double" values From an indicator and save those values into a variable?
      Please NOTE: The indicator i am talking about uses "object" to display those values.
      so in other words i will need a way to read those value from the chart.
      0_1563119186902_printscreen 1.png

      and this is the indicator:
      0_1563119466759_MoneyManager.mq4

      @miro1360 @roar @fxDreema @l-andorrà

      C 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Apparently it should. Could you please show your how your custom indicator windows displays it?

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        Zackry 1 Reply Last reply Reply Quote 0
        • Zackry
          Zackry @l'andorrà last edited by

          @l-andorrà you mean this:
          0_1563165177191_prntscr2.png
          0_1563165188286_prntscr3.png

          or this?

          0_1563165208133_prntscr4.png

          1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà last edited by

            I see this is a custom MT5 indicator. Then I'm afraid it will not work necessarily. fxDreema is not completely developed for MT5 and this is specially evident on custom indicators. Unless the administrator takes a serious effort to fix it, my recommendation is that you try your project on MT4.

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            Zackry 1 Reply Last reply Reply Quote 0
            • Zackry
              Zackry @l'andorrà last edited by

              @l-andorrà bro it's MT4 indicator, I am using it on mt4
              And the project I need this indicator for is also being developed in for MT4

              1 Reply Last reply Reply Quote 0
              • l'andorrà
                l'andorrà last edited by

                Ooops, sorry! :D. Then could you please show your project?

                (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

                (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

                (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

                Zackry 1 Reply Last reply Reply Quote 0
                • Zackry
                  Zackry @l'andorrà last edited by

                  @l-andorrà okay I am replying from my phone, I'll share the link as soon as I get back

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

                    since your indicator is open source you can edit the indicator to make those values that are displayed into buffers and then read the buffers like you do with any other indicator

                    just make the buffers line style be STYLE_NONE so they aren't drawn on the chart

                    Zackry 1 Reply Last reply Reply Quote 0
                    • Zackry
                      Zackry @Spuzy last edited by

                      @spuzy bro I ho no knowledge of programming whatsoever.😭😭😭😭😭

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

                        @roar @miro1360 @fxDreema
                        Please respond to this thread

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

                          @zackry Hi. I don't really know much about custom indicators, they are too much hassle for me.
                          Those values shown as object are probably calculated with some simple algorithm. I would just find out how they are calculated, and just copy that part to my EA. The custom indi is an unnecessary complication

                          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

                          Zackry 2 Replies Last reply Reply Quote 1
                          • Zackry
                            Zackry @roar last edited by Zackry

                            @roar thanks, I don't have any knowledge about the actual code part but I will try to copy and put that code into my project

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

                              @roar well no luck there , it all looks like bricks and stones 😞

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

                                @zackry Ok, lets study the mq4 code:

                                • The first 3 values ("PT", "SL" and "ATR") are probably calculated by these 3 functions:

                                0_1563979750141_d2318c2a-d4fe-41ac-9bf9-7edddb850de1-image.png

                                • The "RRR" is here:
                                  0_1563979838176_6d9c1f97-3da6-4ca6-9a0f-a4cf48f16617-image.png
                                • The "Risk" is just the Risk_per_Trade constant
                                • The "Lots" is probably here:
                                  0_1563979985382_f69da118-cbbb-4a91-ad3b-992ac042cc3f-image.png
                                  money is your account equity, pip_value is a tool for converting pips to raw number:
                                  pip_value = tick_value = MarketInfo(Symbol(), MODE_TICKVALUE)

                                Hope this gets you started 🙂 Ctrl+f is useful when browsing the mq4 file

                                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

                                Zackry 1 Reply Last reply Reply Quote 1
                                • Zackry
                                  Zackry @roar last edited by

                                  @roar a quick question can I use these lines as it is?
                                  Or do I have to change them in some way?

                                  roar 2 Replies Last reply Reply Quote 1
                                  • roar
                                    roar @Zackry last edited by

                                    @zackry
                                    You must first declare the constants and variables in your fxdreema project.

                                    The red ones (ATR_TimeFrame, Risk_per_Trade, etc...) goes to your fxdreema constants list
                                    The black ones (ATR_pips, RRR, lots) goes to your fxdreema variables list

                                    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 1
                                    • roar
                                      roar @Zackry last edited by

                                      @zackry Here is the ATR_pips calculated:

                                      https://fxdreema.com/shared/ap4ilIBmb

                                      0_1563983215787_93c3cf13-b66e-40c2-b371-f89b9ae4c42f-image.png

                                      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

                                      Zackry 1 Reply Last reply Reply Quote 1
                                      • Zackry
                                        Zackry @roar last edited by

                                        @roar thank you roar you went out of your way to help me, I really appreciate it
                                        By the way, the lot size and rest can be achieved the same way right?

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

                                          @zackry No problem lol

                                          And yes, just set up the constants and parameters, and then copypaste the lines from mq4 to calculate

                                          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

                                          Zackry 3 Replies Last reply Reply Quote 1
                                          • Zackry
                                            Zackry @roar last edited by

                                            @roar perfect.
                                            thanks a million times
                                            i am gonna try it

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

                                            Online Users

                                            J
                                            T
                                            J
                                            B

                                            16
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors