fxDreema

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

    Email Alerts - onTrade functions

    Questions & Answers
    2
    2
    462
    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
      sirtrev last edited by

      I've been using fxDreema for awhile but was attempting to code up an EA that will automatically send emails with the following information:

      Trade Ticket #: 3761234
      Symbol: USDCAD
      Direction: Sell
      Size: 0.2
      Open Price: 1.5261
      Stop Loss: 1.5325
      Take Profit: 1.5126

      the onTrade functions included blocks to handle just about all of the requirements - but cannot seem to find a way in fxDreema to include the trade direction or type in the body of the email via a block in fxDreema. Does that make sense? I can modify the .mq4 file for the symbol with OrderSymbol, but the direction I cannot figure out how to include in the email from fxDreema.

      Here's where I do not find the trade direction for onTrade email alerts

      http://i.imgur.com/WUpxhY5.jpg

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

        Well, if I ever decide to add this option, the value that you will get will not be "Buy" or "Sell", because this means nothing for the EA 🙂 But you can still use the native function OrderType() that will give you the numeric value of 0 for buys and 1 for sells

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

        Online Users

        E
        S
        S
        H
        M
        M
        C
        E
        E

        17
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors