fxDreema

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

    check current unrealized profit

    Bug Reports
    3
    12
    3743
    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.
    • M
      miki last edited by

      Hi,when i try to compile with this block i have 5 error and six warning(for mt5). Thanks.

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

        Bad. I will investigate this block, but if you want to check the current profit (the total profit for the account), go to "Account information" in "Condition" block.

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

          Thanks,i've tried to use account information block but i get other 5 errors like "Ask-function already defined and has body" or "bid-function not defined".

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

            Is it ok now?

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

              Hi,account information in condition block it's ok, but the block above in question still gives me 4 errors and 6 warning.I solved too with your advice,thanks again.

              1 Reply Last reply Reply Quote 0
              • G
                goldys last edited by

                Hi

                I tried multiple ways to arrange the functions inside " CURP" block.... still remains unsolved..

                The EA runs on a separate chart to close only profitable trades > +50p, if the total profits in pips -(minus) total losses (pips) > say 500pips.

                lets suppose : of the 15 trades in 10 charts with all 15 trades in different timeframes, of which 10 trades are profitable and 5 are losing trades. From the 10 profit trades, 5 are + 50 pips profit and the other 2 are < 25pips in profit. 5 are already losing trades as we know.

                The block shud ideally (A) filter the profitable trades , say > +50pips in profit and filter these into the next ( B) down fucntion ie.. a. pips ( avaerage of all P/L) or b. Pips ( sum of all profits/losses). the losing trades remain untouched.

                both do not work..... is the dilemma.

                Pips (as sum of all profits............) means in this case, from the filtered profit trades ,5( trades) x 50pips ( each profitable trade) = **250 **and the losses in pips is **ZERO **becoz only the profitable trades are filtered from above A...... so 250 / 0 = 250.
                If a close trade block is connected below then these profitable wud be closed too to function this as EA.

                Ideally , the the block must have Pips( as sum of all PROFITS MINUS LOSSES WHATEVER THE LOCATION AND SIZE OF TRADE)

                I have given up on , how to solve this............ i presume the block does not function at all !.

                Any suggestion highly appreciated in advance.
                thnx

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

                  MQL4, MQL5? Web, Local? Some example link maybe?

                  This topic is for MQL5's block, but in it there is no pre-filter to select only positions with profit > X. So you work on MQL4 or MQL5?

                  By the way I tried to load one of your extra-giant projects, and it appears to be broken, is that normal? 😮

                  1 Reply Last reply Reply Quote 0
                  • G
                    goldys last edited by

                    Hi

                    The "EA Profit Pips " is for check unrealised profit in MQL4.

                    yes the , large EA is broken. and I have removed it. The correct version is renamed EA-TraderCalls-IchiStops " but in local version....... works fine.

                    can u see the link ?.

                    thankx for such prompt reply.....

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

                      Well, this is something partial. And now again I will repeat that rule - when using "(in loop)..." block, ALWAYS, and again - ALWAYS use "Start %whatever% loop" block first. Especially for MQL4, this block %(#FF0000)[MUST BE ALWAYS USED]!

                      And again... to use "(in loop)..." block, especially for MQL4, you need "Start %whatever% loop" block, depending on what are you working with - trades, pending orders, history trades.

                      And again... even when using "(in loop)..." category in "Condition" block, "Start %whatever% loop" block MUST be placed somewhere above. Because it loads the trades/orders/history that is needed one by one.

                      But nevermind, this block (the pink one) does something over a single trade, the last one that is loaded by the EA.

                      In contrast, the blue block does not make a list of trades to be used in another block, it does what it does internally, and does not care of any other block. It only passes if what it sees is true. And then I can suggest "Close each profitable trade" to close the trades with certain profit.

                      And by the way... never use "(in loop)..." block or "(in loop)..." category in "Condition" without having "Start %whatever% loop" block placed above. Especially in MQL4. Never!

                      1 Reply Last reply Reply Quote 0
                      • G
                        goldys last edited by

                        Got it. let me rectify the issues and shall get back to u again sometime soon.
                        thanks 😏

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

                          By the way I'm giving you 1 month for free. I think you need to build your experience more, and I can recommend you to open MetaEditor and start writing some MQL4 projects. Really. To fully understand MQL4 is not that easy, but in the same time it's not that hard to enter in it. And this will really help you to understand what you are doing, it will boost your creativity. Normally to understand something on basic level 1 month is needed, so you are free to start with MQL4 🙂

                          1 Reply Last reply Reply Quote 0
                          • G
                            goldys last edited by

                            Great GESTURE.. Thanks . will do....same.

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

                            Online Users

                            A
                            T
                            R
                            T
                            N
                            K
                            R
                            R

                            15
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors