fxDreema

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

    How would you go about emailing your history to yourself?

    Questions & Answers
    2
    7
    1060
    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
      ScalpfX last edited by

      Hey Dreema!

      I was wondering what you could do to compile a list of the trades in a terminal and email it in daily chunks? It's such a shame (or maybe I am misguided) that the push notifications sent are not logged in the mt4 mobile app so if for instance I ever deleted it or uninstalled it I would have no tracking on my trade history.

      Any help would be much appreciated. I just can't think of a way to do it without writing custom code.

      As always -- thank you so much for your time!

      -$fX

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

        You are talking about this? https://play.google.com/store/apps/deta ... der4&hl=en
        I never tried it, but I can see that it has "History" tab with some trades logged, such thing must be available in every trading platform.

        If you want to log only certain EA... even the PC version of MetaTrader does not do that, it writes all messages in a single file.

        Otherwise SendEmail() and SendNotification() functions can send text. I think you want to create report file and send it as a text message. There are no blocks in fxDreema to create such a report, you are the first one to ask for something like this 🙂

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

          This blows my mind. How can people not want something like this? How can you say a trade went wrong or wasn't filled correctly without evidence?

          It stems from the previous issue I was talking about with you, where for some reason the trader opens and closes a crap ton of trades. It's done it again, btw. Attached is a screenshot from a demo version of my 4 traders. The one that would be opening the trades is Vesica.Pisces.Counter. Current version here: https://fxdreema.com/shared/qefXW1g8b

          The current patch I am going to run with terminates the trader and emails me if any trade closes with 10 minutes of it opening. It's a fine band-aid, I just wish I knew what was happening. The problem is the previous bandaid which is trying to do this isn't working. I am going to just brute force add custom code that changes is trade allowed to false.

          Additionally, the journal only has interesting data. It shows that when its happening there are too many errors to post, and it shows with the failed read data () and failed send data () that it's likely these trades are being closed in some bizarre way. The reason why it's generating that error is the previous code I added which says terminate the trader and send me an email if any trade is closed not from take profit or stop loss.

          Any help would be appreciated. I would really like this to work!

          EDIT: Images were too big. Links here:

          Trade History: http://i.imgur.com/HE5MPzn.jpg
          Journal: http://i.imgur.com/vYi1wQu.jpg

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

            I believe that these errors comes from the e-mail part, maybe something is not properly configured to send e-mails. Do you receive any e-mails? More than that, look at the message that says "allowed 10 messages per minute".

            I don't like S/L and T/P levels for some reason. You have trades closed on TP with loss... slippage or what? Can you check what is going on under "Experts" tab? You should find some messages like this: http://prntscr.com/4lf4rg Look at mine spread meter, it is 2.00 and my trade is just fine - sl 124 points (12.4 pips), tp 40 points (4.0 pips).

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

              The blahblah() is the email stuff -- the reason why I mention it is in my code if that is sending you an email it's because it is terminating the program and it's not terminating. I am reworking it so it terminates not matter the success of the sendmail. I think what happens is the email part fails, so it doesn't terminate. In my live account email is configured properly so it's less likely to happen. Yeah all the trades that it spam come out with weird results. Normally it trades just fine. Then VERY rarely it does this freak out. This is only the second time I have seen it, so I am trying to figure out what is causing it. The expert tab is showing slippage like crazy which is fucking up the tp/sl that's an easy modify fix though.

              For me overall I am just happy I am catching these before I go to live. I would be a sad camper if I didn't! 😛

              I am going to add a second check like I said that is just going to get to see if a trade closes too quickly, and if it does to terminate email me.

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

                I think I am missing something. Here:
                http://i.imgur.com/jjIIDT3.png
                block 11 should pass only if close a trade manually or with block similar to "Close trades" (not by sl, not by tp), but in your logs I see notifications when trades are created and then closed by tp 😕 You are showing me logs from the same EA? Block 37 is the only e-mail block.

                Also I don't get what "blahblah()" means.

                Yes, always check EAs on live demo! That slippage problem is bad, but no one complained about this before. Now I understand why in some situation it can be better to first send the trade and then set it's stops. Well, now by default when we send a request to create a new trade, we send SL and TP as price levels, not as values relative to the open price, so...
                I can suggest this: http://prntscr.com/4lnl2w

                I tried Terminate block, it works for me. Try this block alone.

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

                  Block 11 is a "just in case anyone tampers with my trades" type of block. I was also trying to figure out why the trader would do anything but close trades via SL and TP which it appeared to be doing.

                  Looks like setting trade stops after it goes through fixed the slippage issue however it created another one! Now my global variables which tell which eas to fire to not do so. Also your solution to doing it is super elegant, I just created a loop after the trade not attached to it. That was cool ;D

                  Well see how it goes. Thanks for the help as always!

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

                  Online Users

                  Z
                  T
                  T
                  A
                  S

                  14
                  Online

                  146.9k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors