المشاركة الأصلية كتبت بواسطة Qamar14
مبرووووك
وصلني الحل يامبرمجيييييييين
يلا همتكم معانا شويه
وشوفوا الحل مثلما وصلني بالايميل
1- Define the minimum StopLevel:
int StopLevel;
StopLevel = MarketInfo(Symbol(), MODE_STOPLEVEL) + MarketInfo(Symbol(), MODE_SPREAD);
Note, that adding a spread difference is also required.
2- The next time your stop-loss or take-profit is calculated, just check them to be not less than StopLevel:
if (StopLoss < StopLevel) StopLoss = StopLevel;
if (TakeProfit < StopLevel) TakeProfit = StopLevel;
3- Don’t forget to refresh the current market rates with RefreshRates() before adding the stop-loss/take-profits levels to the actual market rates.
That should help in the majority of the cases. At least, for me such handling of the OrderSend Error 130 has always worked.
صحيح انو الانجليزي عندي خفيف ومش قوي
ولكن انا قادره اميز شو يعني كود برمجه هههههههه