fxDreema

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

    Draw Line

    Questions & Answers
    7
    23
    10653
    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.
    • S
      SydneyFox last edited by

      I would like to be able to draw a horizontal line at the level I want to take a trade but have the line start at the time I initialize the EA.

      I have found the Draw Line block and have used this to draw a line at the correct level but it is across the whole screen whereas I would like it to only start from the time of initializing the EA and then to continue only to the right of this point?

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

        Horizontal line is this line that is across the whole chart. What you want is a trend line.

        1 Reply Last reply Reply Quote 0
        • S
          SydneyFox last edited by

          I have changes to trend line. It now goes vertically upwards and not horizontally.

          Please provide example of how I would use the blocks to place the line on a chart.

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

            I don't know why that happens with Trendline by Angle. It looks that it works with correctly with angles different than 0. And with angle 0 it works fine initially, but then the line becomes vertical.

            I placed this block in "on Init", so it creates only 1 line at the beginning. At first tick the line looks horizontal, only to become vertical (or sometimes disappear) on the next tick.
            Actually, the line becomes vertical even if I only click on the chart with the mouse. I put the Tester on pause, so everything that the EA does is to run the block in "on Init" to create a trend line, which appears horizontal at first... until I click somewhere.

            What is notice is that in the properties of the object we can see slightly different values in both Value inputs. In the MQL4 code we provide only one value (for Price 1), while the other value (Price 2) is set to 0. MetaTrader is supposed to automatically calculate it, and I guess that it should set it to be exactly the same as the first value... but for some reason it decides to change it a little bit, I don't know for what reason.

            By the way I see that in your project you have "hedge" in the title. My opinion about this is that it is a scam. I think that "hedging" in the same symbol is useless, too complicated, hard to do and the result is surely not that magical.

            1 Reply Last reply Reply Quote -1
            • S
              SydneyFox last edited by

              Yes same issue as I get. Any ideas how we can fix it? Is there a change you can make to how the block works?

              I have read previously your dislike for hedging. I'm not sure that my idea of hedging is the same as what other people have tried to do (maybe it is). I'm also not after something that is magical. I do know of some very successful stock investors who hedge their position and see no reason for it not to work as I intend in FX.

              I would really appreciate your help with the trend line issue. Thanks.

              1 Reply Last reply Reply Quote 0
              • S
                SydneyFox last edited by

                Is anyone able to help with this? @fxDreema? @miro1360?

                1 Reply Last reply Reply Quote 0
                • M
                  miro1360 last edited by

                  https://fxdreema.com/shared/CMjGUicHd

                  Between trading and gambling is a very small gap, be careful.

                  B 1 Reply Last reply Reply Quote 0
                  • S
                    SydneyFox last edited by

                    Thank you @miro1360 . I have made some changes to your suggestion to get the level that I want. Of course I know have some further queries/questions.

                    1. The trend line shows on the screen when the EA is first added to a chart.
                    2. If amendments are made to the EA inputs the trend line doesn't move to where the new inputs say it should.
                    3. I wonder if that's because of how the EA is initialized? I have (hopefully) added a screenshot to show what I mean. When the EA is first loaded the inputs are shown on the next line with the next line showing it as being initialized. However when changing inputs the initialized line comes before the inputs line. Does this mean that in the second instance the blocks in the oninit tab don't actually do anything? Because MT4 doesn't know they exist at the time of initialization?

                    You can see in the screen shot the LongValue was initially 1.1868 and with the 2 pip adjustment the trend line is at 1.1870. When the inputs are amended to LongValue 1.1862 the trend line should be at 1.1864 but it has stayed at 1.1870.

                    Hope that makes sense?

                    A further question that I thinks has a similar issue is that when first loading and initializing the EA, if the level that needs to be broken i.e. bid < longvalue is valid then the trade is actioned. If however the condition is valid after changing the longvalue but not deleting and loading again the EA then the trade is not actioned.

                    Does this have to do with the set flag to false on initialization working when the EA is first loaded but not working when the inputs are amended?

                    The trendline EA can be found here https://fxdreema.com/shared/KuXrTD1Id

                    The reason I have used the flag is because if a long trade is closed but price is below the LongValue I don't want a new trade to be automatically opened.

                    0_1511948099645_EA_Trendline.PNG

                    1 Reply Last reply Reply Quote 0
                    • S
                      SydneyFox last edited by

                      A further question @miro1360 is it possible to get the trend line to start on the bar that is on the screen and not on the next not yet commenced bar?

                      Should I be able to see the trend line on any timeframe?

                      Is it possible to have the trendline stay on the chart until manually removed?

                      1 Reply Last reply Reply Quote 0
                      • S
                        SydneyFox last edited by SydneyFox

                        Is there anyone on here that can provide some assistance? @fxDreema ? @miro1360 ? Does anyone else on here have any knowledge about how FxDreema works?

                        1 Reply Last reply Reply Quote 0
                        • M
                          miro1360 last edited by miro1360

                            1. EA is working in way, when parameters are changed, than "on Init" section is skipped (so your trendline is not updated) ... you must remove EA from chart and than attach it again to full update (or change it in code, I posted few times how to do it - but this is not so elegant because you need do it again and again manually after each change in builder) .... not sure how to help you here with this ...
                              but this is the part of code:
                              0_1512083623686_dd24ac31-cb39-4710-ac01-def2c369dd29-image.png

                          and do comments to disable it:
                          0_1512083666082_b593f18a-097d-42a5-8d5e-93ca523132bb-image.png

                          and click Compile button (in metaeditor)

                          ... you are working with "hidden" values and if you want exactly answers for this, instead of flags you can use your own variables as "flag", set variable1=0 to be false or variable1=1 to be true, or any other value and than compare it with condition block ... you can than display these values on chart with comment block to see its actual value ...

                          yes you can set trendline on current bar (not exactly current bar, because trendline need at least 2 bars, so candle 0 and candle 1 are needed, without shift in time)
                          , set parameters:
                          0_1512084190897_d29be81d-f963-4aa8-b712-19eef808aa27-image.png

                          when you remove EA, trendline should stay on the chart, also when you "switch" TF to another (lower) TF, trendline is shown ... for higher TFs is not displayed for logically reason ...

                          Between trading and gambling is a very small gap, be careful.

                          1 Reply Last reply Reply Quote 0
                          • M
                            miro1360 last edited by

                            note, that first recommendation with change in code for initialization can be done as this:
                            0_1512084854687_ed961039-d984-4e35-bb6f-057cb405830a-image.png

                            in first change when you switch chart TF with attached EA, than inputs are updated - and it is not what you want ..... but this second change do not touch inputs when chart TF is switched ...

                            Between trading and gambling is a very small gap, be careful.

                            1 Reply Last reply Reply Quote 0
                            • S
                              SydneyFox last edited by

                              Thank you @miro1360 for spending your time to provide your response. I will see if I can incorporate it into my EA. I'm sure I'll be back with more questions.

                              1 Reply Last reply Reply Quote 0
                              • B
                                biztet @miro1360 last edited by

                                @miro1360 , good day.

                                I found your work in this 4 years thread.

                                https://fxdreema.com/shared/CMjGUicHd

                                I'm trying to make this same type of line but using value fibo retracement level 38.2

                                same as the line value from the indicator i attached below, only that i want to use fibo line from fxdreema.

                                0_1623475810084_fibonacci_38.2.mq4

                                could you please help me with this one? thanks a lot.

                                1 Reply Last reply Reply Quote 0
                                • B
                                  biztet last edited by

                                  Can anyone help me with this please?

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

                                    @biztet I'm afraid miro is not participating in the forum anymore. His last post was one month ago and the previous one was 2 months ago. I hope he's not abandoned us!

                                    (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.

                                    M 1 Reply Last reply Reply Quote 0
                                    • B
                                      biztet last edited by

                                      Oh, what a news.
                                      Looks like i need to call out other experts also..
                                      @roar @miro1360 @trader-philipps @seb-0 @AlphaOmega
                                      and any other experts that can help. Thanks. 😛

                                      AlphaOmega 1 Reply Last reply Reply Quote 0
                                      • AlphaOmega
                                        AlphaOmega @biztet last edited by

                                        @biztet How is it mate?... I do not use mt4 and not sure what you want exactly but I put something down for you to start on. l'andorrà is actually more a boffin on fibos!! I never use them.
                                        https://fxdreema.com/shared/SdXxFWzre

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

                                          @l-andorrà
                                          Don't worry, I am still here and I watch people to learn, to come, to try and give up and leave 🙂

                                          Between trading and gambling is a very small gap, be careful.

                                          l'andorrà S 2 Replies Last reply Reply Quote 1
                                          • B
                                            biztet last edited by

                                            Thanks @AlphaOmega . I've try it but the level is not the same as the indicator that i attached. 😞

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

                                            Online Users

                                            M
                                            A
                                            E

                                            12
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors