Thread: MQL4 Learning
View Single Post
  #389 (permalink)  
Old 06-16-2008, 05:55 PM
IN10TION's Avatar
IN10TION IN10TION is offline
Senior Member
 
Join Date: Mar 2007
Posts: 559
Blog Entries: 1
IN10TION is on a distinguished road
for the calculation you use Bid again.
a "double" has always those trailing zero's

...DoubleToStr(Bid - (SL*Point),Digits)...


Quote:
Originally Posted by mauro269 View Post
Hi my friend, thanks for your reply.
I put it after:

int start()
{


Is it correct?

However I have a problem because at the string

Code:
"StopLoss: " + (YourNewPrice - SL*Point) + "pips \n\n"
It says that there's a problem at the "-" sign between YourNewPrice and SL:

'-' - both operands are to be numeric


Thanks for your help!
__________________
..4.Nov.08.. IN10TION newsReader v09.85 Lite - the best news reader on your chart
Reply With Quote