Get Hline price in all digits.

 

Price=ObjectGet("Name",OBJPROP_PRICE1);

When I run it in EURUSD, I get price in 5 digits 1,2755, how to get it in 6 digits 1,27558.

Thank you.

 
Eggo:

Price=ObjectGet("Name",OBJPROP_PRICE1);

When I run it in EURUSD, I get price in 5 digits 1,2755, how to get it in 6 digits 1,27558.

Thank you.

How do you know what you get ? Print(), Alert(), Comment() ? please read the documentation on all these functions.
 
Now I am testing in alerts. But after that I want that value send into Pending order entry value.
 

Eggo:

When I run it in EURUSD, I get price in 5 digits 1,2755, how to get it in 6 digits 1,27558.

Now I am testing in alerts

  1. When you run it, you get a double, infinite number of digits
  2. Now, reread what RaptorUK posted and follow the instruction or use this
 

double EntryPrice;

ObjectCreate("Entry", OBJ_HLINE, 0,0,Ask-300*Point ); // creates a hline 30p below Ask price.

EntryPrice=ObjectGet("Entry",OBJPROP_PRICE1);

Alert("Entryprice=",EntryPrice);

I get 4 digits after a comma 1,2755, how to get 5 digits 1,2755x?

 
Eggo:

double EntryPrice;

ObjectCreate("Entry", OBJ_HLINE, 0,0,Ask-300*Point ); // creates a hline 30p below Ask price.

EntryPrice=ObjectGet("Entry",OBJPROP_PRICE1);

Alert("Entryprice=",EntryPrice);

I get 4 digits after a comma 1,2755, how to get 5 digits 1,2755x?

Read the documentation . . . do I need to tell you a third time ? or shall I copy and paste the Documentation here for you ?
 

DoubleToStr.

It was written, my bad.

Thank you for your patience.

 
Eggo:

DoubleToStr.

It was written, my bad.

Thank you for your patience.

Well done . . . most of what you need is written in the Documentation, sometimes it's a little hard to find or follow . . . if it is then please ask, but take a look yourself first ;-)