Fixing a problem with error code #130

Tarea técnica

We have created a script:

////////////////////// insert order ////////////////
      string  cur     = result2[0];
//--- get minimum stop level
   double minstoplevel=MarketInfo(Symbol(),MODE_STOPLEVEL);
   Print("Minimum Stop Level=",minstoplevel," points");
   double price=Ask;
//--- calculated SL and TP prices must be normalized
   double stoploss=NormalizeDouble(Bid-minstoplevel*Point,Digits);
   double takeprofit=NormalizeDouble(Bid+minstoplevel*Point,Digits);
//--- place market order to buy 1 lot
   //int ticket=OrderSend(cur, OP_BUY,0.02,price,1,0,0,"My order",16384,0,clrGreen);
   int ticket=OrderSend(cur,OP_BUY,0.02,MarketInfo(cur,MODE_ASK),3,stoploss,takeprofit,"Script BUY",0,0,clrBlue);
   if(ticket<0)
     {
      Print("OrderSend failed with error #",GetLastError());
      Alert("Error bij kopen up van ",cur," ");// Alert
      RefreshRates();
         return;
     }
   else
      Print("ORDER AANGEMAAKT");
      Alert("Kopen up succes voor ",cur," met ticket ",ticket," ");// Alert
//---
  }
////////////////////// insert order ////////////////

The error message we receive when this script is executed on certain pairs is "Minimum Stop Level=80 points".

This is a part of our script and it should be fixed between these lines if possible. Is there someone who can help us with solving this issue?


I don't know if this is related to an other error we receive in our Journal or if this is an other problem.

At a certain time after running the script we receive an error: MySQL: mysql_init failed. There was insufficient memory to allocate a new object.


I am looking for someone who can fix one of these issues and preferable both.

The most important one of the 2 is the first problem.


Han respondido

1
Desarrollador 1
Evaluación
(627)
Proyectos
989
47%
Arbitraje
33
36% / 36%
Caducado
98
10%
Trabaja
Ha publicado: 6 ejemplos
2
Desarrollador 2
Evaluación
(590)
Proyectos
789
71%
Arbitraje
9
33% / 33%
Caducado
22
3%
Libre
Ha publicado: 8 ejemplos
3
Desarrollador 3
Evaluación
(250)
Proyectos
460
26%
Arbitraje
140
20% / 59%
Caducado
100
22%
Trabaja
4
Desarrollador 4
Evaluación
(361)
Proyectos
629
72%
Arbitraje
14
43% / 7%
Caducado
28
4%
Libre
Ha publicado: 9 ejemplos
5
Desarrollador 5
Evaluación
(164)
Proyectos
218
50%
Arbitraje
6
17% / 67%
Caducado
11
5%
Libre
6
Desarrollador 6
Evaluación
(6)
Proyectos
7
57%
Arbitraje
1
0% / 100%
Caducado
2
29%
Libre
7
Desarrollador 7
Evaluación
(88)
Proyectos
143
39%
Arbitraje
21
19% / 48%
Caducado
30
21%
Libre
8
Desarrollador 8
Evaluación
(121)
Proyectos
134
66%
Arbitraje
36
25% / 56%
Caducado
22
16%
Libre
Ha publicado: 10 ejemplos
9
Desarrollador 9
Evaluación
(3)
Proyectos
8
13%
Arbitraje
10
10% / 70%
Caducado
2
25%
Libre
Solicitudes similares
Title: MT5 EA Needed – Prop‑Firm Compliance Tool (SL/TP at Entry, 60‑Second Hold, Daily Profit Cap, 0.5% XAUUSD Risk) Description: I need an MT5 Expert Advisor that enforces prop‑firm compliance rules for Instant Funding accounts. The EA must NOT trade automatically — it should only monitor and control my manual XAUUSD trading. I trade all sessions, so there should be no time restrictions. MY TRADING STYLE (Important
​1. Project Overview ​ Asset: XAUUSD (Gold) ​ Timeframe: M1 (1-Minute) for execution; M5/M15 for trend filtering. ​ Objective: Execute high-frequency scalps during peak liquidity (London/NY overlap) to capture 10–30 pip movements with high precision. ​ Core Logic: The "Poverty Bot" strategy relies on Mean Reversion combined with Momentum Burst (Price Action + RSI/EMA filters). ​2. Strategy Logic (The "Poverty"
Simple MA indicator with buy and sell arrow with a push notification. Conditions for buy or sell should be when price breaks above or below the MA and then retraced back to the MA creating a HH/HL or LH/LL then the buy/sell signal arrow should be at the reversal candle that forms the HL/HH. And on indicator window1 RSI cross over MA and the RSI line
Hi, I hope you doing Greate, Let me share details , so the original EA already working but you can check and verify everything fine.First you verify that all original EA features are working correctly then add a user dashboard showing the number of detected zones, buy sell both none status, and an on off button. also ensure mitigated zones disappear properly and that trades follow the zone rules, and integrate the
I need a high-speed Expert Advisor (EA) for MT5 designed specifically for XAUUSD (Gold) scalping. The bot should focus on fast entries and quick profits with high efficiency. Main requirements: 1. Symbol: XAUUSD (Gold only). 2. Platform: MetaTrader 5. 3. Strategy type: Scalping (fast trades, quick profit). 4. The bot should open trades frequently based on fast market movements. 5. Small Take Profit (quick profit
A perfect indicator 30 - 80 USD
Merge nearby zones yes/no Alert on/off Label on/off Show only current relevant zones near price yes/no Distance filter from current price Zone transparency Colors Preferred Output on Chart: I want the indicator to show only: the strongest nearby support zones under price the strongest nearby resistance zones above price major higher timeframe zones clean chart view I do not want excessive clutter. Entry Assistance
Project Title: Custom XAUUSD Support & Resistance Indicator Platform Required: MT5 preferred. If possible, also provide TradingView Pine Script version later. Main Goal: I want a custom indicator made specifically for XAUUSD (Gold) only. The indicator should automatically detect and draw strong support and resistance zones where price has a high probability of reacting, rejecting, or reversing. It must update
1. IF price forms: - Higher highs + higher lows → TREND = BUY - Lower highs + lower lows → TREND = SELL ELSE → NO TRADE 2. IF: - Trend = BUY - Price retraces to support zone - Bullish engulfing candle forms - TDI green crosses above red (optional) THEN: - Execute BUY 3. IF: - Trend = SELL - Price retraces to resistance - Bearish engulfing forms - TDI confirms THEN: - Execute SELL 4. Risk per trade = 1% of account Lot
Hello, I am looking for a professional trading system including: 1- Trading Bot (Expert Advisor): - Good profit performance - High security and strong risk management - Works efficiently during high market volatility (news and strong movements) - Works on all pairs (Forex + Gold) 2- Signal Indicator: - Provides clear Buy and Sell signals - Includes Take Profit and Stop Loss - No repaint (signals must not change or

Información sobre el proyecto

Presupuesto
30 - 100 USD
Plazo límite de ejecución
a 3 día(s)