fxDreema

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

    Copy object values

    Questions & Answers
    candle id
    3
    19
    3081
    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.
    • R
      robertk last edited by robertk

      I created a topic on this not too long ago, but for some reason it doesnt show on the forum.

      I try to achieve something that i think is not too complex. I want to copy values from one source to another, and plot the results from this source in a TL afterwards.

      When it comes to TL's there is no problem with time, but for prices i need the trendline to use the candle low or high found at time 1 and 2 (tl connection points)

      Question: how do i make use of both candle ID’s that are connected to time 1 and time 2 of the first source? To then define whether the actual trendline needs to be drawn onto the candle low or high of corresponding candle ID on selected markets?

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

        @robertk do you mean, how to measure if the TL is down sloping or up sloping?

        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

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

          @roar thanks for the quick respond Roar. I dont need to measure the slope, i only need to copy the source values and use that information to plot a TL.

          Right now i am trying to look if i can somehow obtain the candle ID of those price points within a variable, and use that variable within copy attributes. No luck so far..

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

            @robertk you dont know if the source TL is plotted to candle highs or lows?

            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

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

              @roar i do know this. If you draw a trendline and connect it to 2 candle lows, or 2 candle highs. Could you then explain me how i can grab the candle ID that is found at the times of these candle lows or highs?

              1 Reply Last reply Reply Quote 0
              • R
                robertk last edited by

                If its still unclear i will make a small sample project on the builder tomorrow, or record it. Its quite important to me 😬

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

                  @robertk still guessing, lol 😄
                  Making visual things into math is often confusing.

                  You want to convert regular time to candle time (candle ID)?
                  ibarshift() does that
                  https://docs.mql4.com/series/ibarshift

                  When you know the candle IDs of the source TL, you can use "trendline price by candle ID" to figure out all the info, can't you?

                  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

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

                    Edit: problem solved

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      seb 0 @robertk last edited by

                      @robertk
                      You can see your own posts by clicking you profile pic. This might be the topic you were looking for : https://fxdreema.com/forum/topic/11030/obtaining-trendline-values-and-redrawing-the-trendline/4
                      The link you did paste is missing a part 😕
                      About taking the price by candle high/low in function of time, doesn't this block do the math ?
                      0_1605102685168_Capture d’écran (271).png

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        robertk @seb 0 last edited by robertk

                        Edit: problem solved

                        1 Reply Last reply Reply Quote 0
                        • R
                          robertk last edited by robertk

                          Edit: problem solved

                          1 Reply Last reply Reply Quote 0
                          • R
                            robertk last edited by robertk

                            Edit: problem solved

                            1 Reply Last reply Reply Quote 0
                            • R
                              robertk last edited by robertk

                              Edit: problem solved

                              1 Reply Last reply Reply Quote 0
                              • R
                                robertk last edited by robertk

                                Edit: problem solved

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

                                  @robertk "Chart ID" specifies the target chart. Apparently the fxdreema block doesn't have that parameter, so I'd guess you have to use the actual mql4 function in a custom code block
                                  https://docs.mql4.com/objects/objectcreate

                                  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

                                  R 1 Reply Last reply Reply Quote 1
                                  • R
                                    robertk @roar last edited by robertk

                                    Edit: problem solved

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

                                      @robertk the custom code block replaces the "Draw line".
                                      "Current market" has nothing to do with charts - the symbols aren't tied to any chart - but you still need that block for getting the proper prices.

                                      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

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

                                        Edit: problem solved

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

                                          @robertk behind the draw line block in fxdreema is this exact mql4 function, its just in graphical form with some nice drop down menus. You should be able to use the function, you have kind of used it before.

                                          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
                                          • 1 / 1
                                          • First post
                                            Last post

                                          Online Users

                                          N
                                          S
                                          T

                                          13
                                          Online

                                          146.7k
                                          Users

                                          22.4k
                                          Topics

                                          122.6k
                                          Posts

                                          Powered by NodeBB Forums | Contributors