Invalid Trade Parameters on BUY_STOP - page 2

 
marcboggs:
Hi Trinh,

I tried your suggestion and I am met with the same result:

MCB.ScalpWiz.9001 EURUSDpro,M1: Buy Trade params: Symbol: EURUSDpro Lot Size: 0.02 Ask: 1.18932 Bid: 1.18912 StopAsk: 1.19002 Slip: 3 Stoploss: 1.18002 TakeProfit: 1.20002
MCB.ScalpWiz.9001 EURUSDpro,M1: Failed to OpenSingleBuy, error # invalid trade parameters.

To 5 digits after the decimal point, it should be:

    double AskStopPrice = Ask + StopPriceBuffer * Point * 10;
    double BuyTP        = Ask + TakeProfit      * Point * 10;
    double BuySL        = Ask - OpenStopLoss    * Point * 10;
 
Siti Latifah:
if you use minimum stoplevel, you must attention this

example:

to set buyStopLoss, you must use Bid

http://my.jetscreenshot.com/20838/20160114-xkkr-17kb

Not you must not use bid, unless you want your stoploss to include the spread.
 
marcboggs:
Hi Trinh,

I tried your suggestion and I am met with the same result:

MCB.ScalpWiz.9001 EURUSDpro,M1: Buy Trade params: Symbol: EURUSDpro Lot Size: 0.02 Ask: 1.18932 Bid: 1.18912 StopAsk: 1.19002 Slip: 3 Stoploss: 1.18002 TakeProfit: 1.20002
MCB.ScalpWiz.9001 EURUSDpro,M1: Failed to OpenSingleBuy, error # invalid trade parameters.

You need to normalize your price and your lot size.
 
marcboggs:
Hi Trinh,

I tried your suggestion and I am met with the same result:

MCB.ScalpWiz.9001 EURUSDpro,M1: Buy Trade params: Symbol: EURUSDpro Lot Size: 0.02 Ask: 1.18932 Bid: 1.18912 StopAsk: 1.19002 Slip: 3 Stoploss: 1.18002 TakeProfit: 1.20002
MCB.ScalpWiz.9001 EURUSDpro,M1: Failed to OpenSingleBuy, error # invalid trade parameters.


What is ExpDate ?

Reason: