Download MetaTrader 5
To add comments, please log in or register
Speed up MQL5 Cloud Network. Install Strategy Tester Agent!
daxtrader54
39
daxtrader54 2015.03.12 20:22 

Hi guys


I apologise for asking this question, without offering to pay anyone, but hopefully someone can help me.

I have an indicator that provides an email based on a particular condition. The email function is a simple string concatenation which looks like this:

 SendMail( StringConcatenate( "basic text   #", Symbol() ),

                          StringConcatenate("  « ", periods(), " »  ( ", TextForUp, " = ", Bid " )", TimeToStr( TimeCurrent(), TIME_DATE | TIME_MINUTES )));

 

I would like for the text to provide additional information. The additional information I want it to show would be a profit target. To do this I want the function to take the ",Bid" and add 30 points and produce the calculated number. So that's basically the profit target for a buy trade.

 Does this make sense? Hopefully it does.

 

Can anyone help? 

Alain Verleyen
Moderator
30297
Alain Verleyen 2015.03.12 22:55  

You can at least provide the code if you need help.

Alexander Puzanov
29237
Alexander Puzanov 2015.03.13 04:31  
daxtrader54:

To do this I want the function to take the ",Bid" and add 30 points and produce the calculated number.

DoubleToString(Bid + 30 * _Point, _Digits)
/
To add comments, please log in or register