Check the type of pending order you are use (stop vs limit) and make sure your TP and SL are on the correct sides of the pending price, for that order
mkheidzedavid:
Thanks for quick reply. Ive checked them already, its correct, both are on the correct sides. In the indicated example the OrderType() is 4 = BuyStop.
Thanks for quick reply. Ive checked them already, its correct, both are on the correct sides. In the indicated example the OrderType() is 4 = BuyStop.
Could it be that accidental the new EntryPrice == OrderOpenPrice() of the PendingOrder and therefore StopLoss and ProfitTarget wouldn't change?
gooly
gooly:
Could it be that accidental the new EntryPrice == OrderOpenPrice() of the PendingOrder and therefore StopLoss and ProfitTarget wouldn't change?
gooly
In the code I have that comparison, so that case is excluded. Weird...
Russian broker - InstaForex. StopLevel is written on the screen: the second number - 1.3241
deVries:
that is not Stoplevel that is your StopLoss setting
looks like you try to open a pendingtrade to tight at level Bid or Ask
check the distance between orderopenprice with bid or ask also
And what should be the distance with the current bid/ask and the pending price? Spread?
mkheidzedavid:
And what should be the distance with the current bid/ask and the pending price? Spread?
And what should be the distance with the current bid/ask and the pending price? Spread?
(see Requirements and Limitations in Making Trades).
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, Im getting error 130 for a pending order. All the numbers seem correct, I don't understand why Im getting the error.
See attachment
Red upward arrow indicates the candle whose open is the time when Im trying to place BuyStop order. Lower line is the stoploss, upper one is the take profit and the middle one is the pending price.
The numbers on the upper left corner of the screen are: Price, SL, TP, Lots
Can anyone help?
Thanks