fxDreema

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

    self updating/refreshing grid, compare two groups of trades

    Questions & Answers
    10
    449
    423928
    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.
    • fxDreema
      fxDreema last edited by

      Fixed

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

        Regarding the anchor: I would like to have a solution with an object on chart but my afforts weren't successful. Could you give me an example or explain your suggestion. I have found ID 1,2,3 in "object on chart" but I couldn't manage to read and compare the ID from an object that was placed in the past.

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

          https://fxdreema.com/shared/yUYMeA3nc

          https://fxdreema.com/demo/mt4-object-by-name
          https://fxdreema.com/demo/mt4-object-in-loop

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

            Thanks!

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

              It seems drawing a horizontal line to the right (ray right) is not working. I would like to draw a line to right direction at zig-zag high but the line always goes to both sids. How to do that?

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

                This Ray thing applies only for trend lines. It's kind of a bug that these options appear in the block when Horizontal line is selected 🙂

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

                  How to draw a horizontal line to the right (ray right)?

                  How to draw a horizontal line to the right over 10 bars, for instance?

                  How to change the colour of a single bar? I mean all bars are green but the changed one is white, for instance. That should be possible after a condition was met.

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

                    But what do you mean by "horizontal line"? Horizontal lines does not have ray, they start from the left side of the chart and end at the right side of the chart. Horizontal lines are built of only one Price, nothing more. There is no second Price, there no even a single Time.

                    Do you want to use trend line? Trend lines are also lines, but not horizontal lines. They are build from Price 1, Price 2, Time 1 and Time 2, which makes their 2 coordinates.

                    I don't know how to change the color of a single bar. I know that you can change all at once by doung right-click and then Properties

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

                      Ok, I can understand your confusion as you are a programmer. Maybe a "horizontal trendline" is a more precise expression even a rectangle with zero hight will do it. What i need is a line from a specific point to the right or to an another bar but the line shouldn't rise or fall. A horizontal line between two timepoints. I don't know why but i couldn't manage it by using Price1, Time1 and Price2, Time2. Could you make a screenshot with the right settings for a "horizontal trendline" over a period of 10 bars, maybe from bar(20) to bar(10) or a line from day H1 first bar to the day H1 last bar (a horizontal line over a period of 24 bars)?

                      Is there really no way to paint (change colour of) a single bar that has a special attribute. I would like to highlight inside- and outside-bars. If that is generally not possible that will be bullsh..., otherwise you should add that feature because almost every chart-software can do that (just a suggestion).

                      Is it possible to draw a rectangle of the width of a candle and the hight could calculated by using the formula block before the draw block (candle high - candle low).

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

                        Time 1 - the time of the 10th candle
                        Time 2 - the time of the current candle, but to be horizontal line it can be any other candle that is not the one for Time 1
                        Price 1 = Price 2 => that's why the line is horizontal

                        https://fxdreema.com/shared/JjZcYIKxd

                        I used the right ray here, which makes the line to go to infinity starting from the second point (Time2/Price2)

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

                          Thanks.

                          What about a vertical line or rectangle from candle low to candle high. Is that possible?

                          Is it possible to draw a horizental trendline from candle(0) for the next 24 candles, something like candle(-24)?

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

                            You have the chart. The chart has two axes - X and Y.

                            • X axis - each candle makes one point of the X axis and the value is an integer value similar to this http://www.epochconverter.com/ If we have a candle with time 2016.04.15 23:00, the real value is 1460761200
                            • Y axis - this is the Price, you have infinite points here

                            Trendline is built out of 2 points, let's call them point A and point B. Because it's a line - it has a start and it has an end. Two points - start and end. Each point has some coordinates by X and by Y. Again, X is the Time, Y is the Price. You decide what will be the actual values.
                            Here is more - https://www.mql5.com/en/docs/constants/ ... /obj_trend

                            Rectangles are also built out of 2 points - https://www.mql5.com/en/docs/constants/ ... _rectangle
                            The rectangle has 4 angles of course, but everything is made out of 2 points.

                            This is the standard horizontal line - made out of only one Price parameter - https://www.mql5.com/en/docs/constants/ ... /obj_hline

                            There are of course more complex objects like this one, which is made out of 3 Times and 3 Prices - https://www.mql5.com/en/docs/constants/ ... _pitchfork

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

                              Thanks.

                              Now I would like to move a line on the chart by clicking the left mouse button but while the mouse button is pressed it shoudn't trigger a trade. The line shoud only "work" when left mouse button is not pressed (not moving).

                              Is it possible to do something like that: while the left mouse button is pressed, the condition block output is disabled otherwise enabled. What would you suggest, what is possible?

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

                                Look at the **Chart **example on the bottom here - https://fxdreema.com/examples/#Events

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

                                  I would like to draw a few ma indicators after contition is set true. I did't manage to do that. What blocks do I need to simply draw moving avarages and delete them?

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

                                    https://docs.mql4.com/customind/hidetestindicators

                                    This function is used to hide indicators. It does not exists in a block. I was thinking to add it somewhere, but it doesn't exists in MT5 and I don't really want to make more things that work only in MT4 or MT5. At some point I guess I will decide to merge both, so I don't want too many differences 🙂

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

                                      Do I understand you right, it is not possible to draw an indicator as it is possible to draw a line or an arrow?

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

                                        How stupid am I really... you are asking me for showing indicators, I'm showing you how to hide them. This function actually works at the end of the backtest.

                                        I don't know how to show any indicator while the EA is working. Indicators are used, yes, but they don't appear. Yes, you can manually add any indicator, but I don't know if it's even possible to automatically add them

                                        1 Reply Last reply Reply Quote 0
                                        • C
                                          cfabian last edited by

                                          __These options are similar to the same in the regular trailing stop. Trailing stop mode = where to place the stop, Trailing Stop = how often to modify it. Yes, the step can be 0.

                                          When I first made this block, it was with horizontal line. But then I modified it a little bit and now it draws these numbers. What they mean is that when the profit becomes 2.52, trades will be closed, but now the profit is 5.1. In other words: Current Profit => Trades will be closed when the profit becomes this. These numbers comes from the block, MT4 itself does not have such options.[/quote:2xkpj4n8]

                                          I've been using this trailing money loss, and it worked fine when I first used. Now I don't know why, at all times when reaching start value, and profit climbing the value on the right doesn't change. It remains like say 5.7 => 0.0

                                          2 days ago I saw it working and the value on the right kept changing as profit increased. Now I don't know why it does not change 0.0 value.

                                          I have used as a step values like 0, 50 and 100. But unsure which one is more adequate, or how this really works. My need is that if profit increases no matter by how much, the SL always be at 70% of the maximum gain, meaning I'll give up 30% of the profits.

                                          Please help on how to set up step value to make it work as described.

                                          Also have to say that at some trades I don't get the 5.7 => 0.0 Prompt, no matter profit was over start value. Any guess?

                                          Thanks

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

                                            cfabian, I didn't changed that block on the web version. Not to mention on the desktop version. If something worked before and now it doesn't work, and I didn't changed anything, I suppose that it's something that you have done. But I don't know what it is.

                                            For this block, note that this stuff 5.7 => 0.0 is generated inside the block every time it runs. If for some reason the block does not run all the time, this thing will not be updated.
                                            Also, I admit that there can be some problem inside the block, some bug. I'm fixing this one from time to time. Now I don't know what is the problem exaxtly, but if you give me simple example that contains 2-3 blocks and shows the problem when I put it into my MT4, I will fix whatever it is. I probably said this few times already 🙂

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 17
                                            • 18
                                            • 19
                                            • 20
                                            • 21
                                            • 22
                                            • 23
                                            • 19 / 23
                                            • First post
                                              Last post

                                            Online Users

                                            A
                                            A
                                            E
                                            B
                                            M
                                            J
                                            B

                                            24
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors