Email Alerts - onTrade functions
-
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.5126the 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
-
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