Problems with 5 digits

 
I put 3 pips of slippage
A broker who works with 5 digits, as the slippage would be made correctly:
1/ tike=OrderSend("EURUSD", OP_BUY, lts, unoA, 3, 0, 0, " ", 1, 0, Blue);
2/ tike=OrderSend("EURUSD", OP_BUY, lts, unoA, 30, 0, 0, " ", 1, 0, Blue);
thanks and greetings to all
 

int mypoint;

int init(){

....

if(MarketInfo("EURUSD",MODE_DIGITS)==4)mypoint=1;else mypoint=10;

...

}

int start(){

....

tike=OrderSend("EURUSD", OP_BUY, lts, unoA, 3*mypoint, 0, 0, " ", 1, 0, Blue);

..

}

 

Roger. thank you very much

Another similar question.

In a broker who works with 5 decimal places, if I want 3 pips of slippage, I have to put 30 on the following site:?

Tools/Options/Trade/Deviation by default/Default =30?

thanks and greetings

 
I didn't understand what is the question.
 
Sorry, I write in Spanish and do machine translation
My broker works = 5 digits
I want to work with 3 pips of slippage
On the MetaTrader platform: Tools/Options/Trade/Deviation by default/Default
I have to write? 3 or 30 ?
thanks and greetings
 
I think 30.
 
thanks
Reason: