Download MetaTrader 5

Arithmetic function to the BID variable

To add comments, please log in or register
daxtrader54
124
daxtrader54  

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
33594
Alain Verleyen  

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

Alexander Puzanov
34613
Alexander Puzanov  
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