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

      http://prntscr.com/7scydx

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

        very nice, thanks. I believe that will work.

        My "step counter" is still not working. What is wrong with solution1? Assume that there are buy-trades of group 111 already running. Every 100 pips V1 should increase. What is wrong here?
        https://fxdreema.com/shared/PODADgWOc

        p.s.
        Actually this is working correctly but the first step/increase of variable is not working correctly. Everything seems to work after the 2nd trade. The 3rd trade is calculated correctly.

        p.p.s. I think "For each trade" need at last two trades to know which one is the oldest. Right?

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

          I see "For each Pending Order" over there, not "For each Trade", there is some small difference between those two blocks 🙂

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

            Oh, yes, of course :). The following is the same I have added to my EA and was working as mentioned above:
            https://fxdreema.com/shared/v5JaYqMmb

            I would like to have something that starts increasing variable right from the first trade that is in loss. The above is working correctly but only after the 2nd trade was placed. The lot size of the 3rd trade is set correctly.

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

              Maybe you want to do something like this: https://fxdreema.com/shared/jpcPqvJqb
              There is a variable that is set to Bid when the upper round number is detected, but then this same variable is compared to Bid, so as a result "Round numbers detector" passes only once for a given level and after each level the price must go even more upwards to reach the next level. Plus, if you make the variable 0, the whole situation resets.

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

                that looks interesting, but what is "Bid"? This is not a variable. I know "pips" which I can use in adjust field, I assume Bid is similar. Are there more "Words" like these two that could be used in a similar way? If there is "Bid" there must be "Ask", any else?

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

                  http://docs.mql4.com/predefined/bid

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

                    Thanks so far.

                    What blocks allow to use a komma as separator. kommaseperator on groups is working but is it possible to do something like this on "delete objects" : Longmode, Shortmode, ect. in one block?

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

                      No, there is no such thing in "Delete objects".

                      More than that, there are no restrictions for object's names and the comma itself can be used within the name, so there will be no way to separate multiple names with commas. Look, I have no problems to give such name to my object: http://prntscr.com/7xqire

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

                        unfortunetaly, there are some errors since the update.

                        "+50pips" , "-50pips" "undeclared identifier" what is new to that, what have I to change?

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

                          Mm, I believed that this is ok, now I will check it

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

                            I think it works now

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

                              yes it works again, thanks.

                              I am going on with testing on life demo if everything is realy working :).

                              By the way, to place variables and constants to the left upper corner was a good idea.

                              If you feel bored after this update :), you could make something that is highlighting blocks are using a selected variable or constant. That will be very helpfull.

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

                                __

                                If you feel bored after this update :), you could make something that is highlighting blocks are using a selected variable or constant. That will be very helpfull.[/quote:3aqb42pz]
                                Ok, i did that. In not the best way probably, and not very accurate. Constants/variables that are written manually or used in the sidepanel "Variables" of the properties window are probably not detected. I just used some function that I have for detecting some constants/variables in other situation and I used this one. Let's say that this is experimental.

                                How to do it... move the mouse over the input field and some block will be selected: http://prntscr.com/869vpe

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

                                  I can't follow you or can't verify what you have added or changed.

                                  What already exists is the little window that appears under a variable or constant when I try to delete it and it is still used in blocks. It would be very nice to have a button to "turn on" a variable or constant to make them highlighted permanently in the scematic until "turned off" again.

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

                                    No blocks are highlighted when you mouse over the name of the variable?

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

                                      According to your screenshot, no, there are no highlighted blocks. But even if, it will not be very helpfull because I have to scoroll to see all blocks and if I understood you right blocks are highlighted only when the mouse is over the variable/constant.

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

                                        Then what do you want to happen?

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

                                          well, when I click on a button that is connected to a constant or a variable like the delete-cross button (maybe on the right or left side of the cross-button) then the blocks that are using the variable or constant should be highlighted.

                                          Actually the same that happend when I click on the cross to delete a variable or constant that is still used but then not only a window containing the blocks should appear but the blocks should be highlighted.

                                          simplified: highlight the blocks from the window with the blocknumbers after clicking the crossbutton (of course there should be something to dehighlight them again).

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

                                            Eventually I will remove those block numbers. But I can't get the idea to highlight blocks in a different way (from the way I did it now). There are few working fields (on Init, on Tick...) and for each of them the space available for putting blocks is unlimited. So how to see all blocks at the same time. Only if there is some shortcut created, I guess, but this is not highlighting of the blocks themselves 😎

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 10
                                            • 11
                                            • 12
                                            • 13
                                            • 14
                                            • 22
                                            • 23
                                            • 12 / 23
                                            • First post
                                              Last post

                                            Online Users

                                            M
                                            J
                                            X
                                            K
                                            E
                                            D
                                            E
                                            M
                                            H
                                            C
                                            I

                                            21
                                            Online

                                            146.6k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors