[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 257

 
PapaYozh:


no I don't.

Inside your function is the same assignment command.


I see...

So, no special function other than XXX = "";?

 
VOLDEMAR:

How do I get the cost of the item back ???

It does not work !

string Symb =Symbol() ;

double serew=MarketInfo(Symb,MODE_POINT) ;


it works.

Use function DoubleToStr

 
BBSL:


I see...

So, no special function other than XXX = "";?


No. There is nothing more special than assignment.
 
PapaYozh:

No. There's nothing more special than an assignment.

OK, thanks))
 
I tried to put none instead of black but it didn't work.
 
PapaYozh:


it works.

Use the DoubleToStr function

Give an example of how to return the price of an item ..........
 
VOLDEMAR:
Give an example of a price return of an item ..........

string Symb =Symbol() ;

double serew=MarketInfo(Symb,MODE_POINT) ;
Comment( DoubleToStr( serew, MarketInfo(Symb,MODE_DIGITS) ) );
 
PapaYozh:

Thanks ! But I am interested in the price of a pukt ! how much is one point in the deposit currency.........
 
VOLDEMAR:
Thank you ! But I am interested in the price of a point ! how much is one point in the deposit currency.........


use

MarketInfo(Symb,MODE_TICKVALUE)

If you want to calculate the point value in the currency of the deposit for a specific volume:

serew = Lot * MarketInfo(Symb,MODE_TICKVALUE) / MarketInfo(Symb,MODE_TICKSIZE);

where Lot is the volume of the contract

 
vitas0503:
I would like it to be transparent to see the bottom indicator.I tried to put none instead of black - did not work.


I think you should not put decompiled indicators. This way you can get in the bathhouse.

I removed the indicator.