Open full Deposit Position

 
I wanna put whole my deposit to a position my code is working for currency pair like EURUSD buy cryptocurrency pair like BTCUSD give me invalid price error. Can someone tell me what i did wrong?
double PriceOpenSell=NormalizeDouble((AccountBalance/100000)/Ask,2);
double PriceOpenSell=NormalizeDouble((AccountBalance/100000)/Bid,2);
 
SteveWozniak :
I wanna put whole my deposit to a position my code is working for currency pair like EURUSD buy cryptocurrency pair like BTCUSD give me invalid price error. Can someone tell me what i did wrong?

First of all, both double do not have PriceOpenSell

 
Ahmet Metin Yilmaz:

First of all, both double do not have PriceOpenSell

just a name the first one should be PriceOpneBuy but even with other names doesn't work
 
You quote lines with NormalizeDouble(). Why do you think that these lines are causing the error message?
Reason: