Fixing a problem with error code #130

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(595)
Projets
927
46%
Arbitrage
31
39% / 29%
En retard
93
10%
Travail
2
Développeur 2
Évaluation
(590)
Projets
789
71%
Arbitrage
9
33% / 33%
En retard
22
3%
Gratuit
3
Développeur 3
Évaluation
(236)
Projets
440
26%
Arbitrage
125
21% / 57%
En retard
96
22%
Travail
4
Développeur 4
Évaluation
(356)
Projets
590
70%
Arbitrage
14
43% / 7%
En retard
28
5%
Gratuit
5
Développeur 5
Évaluation
(169)
Projets
218
50%
Arbitrage
6
17% / 67%
En retard
11
5%
Gratuit
6
Développeur 6
Évaluation
(6)
Projets
7
57%
Arbitrage
1
0% / 100%
En retard
2
29%
Gratuit
7
Développeur 7
Évaluation
(88)
Projets
143
39%
Arbitrage
21
19% / 48%
En retard
30
21%
Gratuit
8
Développeur 8
Évaluation
(121)
Projets
134
66%
Arbitrage
36
25% / 56%
En retard
22
16%
Gratuit
9
Développeur 9
Évaluation
(3)
Projets
8
13%
Arbitrage
10
10% / 70%
En retard
2
25%
Gratuit
Commandes similaires
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
Hello Im looking for professional trading developer who htf ready made trading with best and working strategy with low risk level with average of 30 to 60 percent profit margin, broker is not problem, any broker is welcomed and any trading pairs are welcomed as well
hi. I hv a strategy on tradingview need to convert to mt4/mt5 expert advisor for algo trading. would like to add some tradingview strategy setting to the mt4/mt5 EA(not included in my tradingview source code): recalculate after order is filled, order size: xx% of equity
Hi, i will provide a dll .use it's functions develop a backend code copy trading .it should a master accounts and slave accounts based of the mapping with the copy parametsrs it should start copy trades between the master and slave .one slave should be able to copy from Mutiple master and some basic fronted access to be created using the angular js
see trade open on every tick seconde ok forex pair us us30 if is current running at 40170.00 so open 2 trade buy stop and sell stop both in every tick pending order of buy stop will 40171.00 and sell stop pending order will be 40169.00 buy stop will open at 40171.00 and tp will be 40173.00 and SL will be 40169.50 ok if buy stop hit sell stop order automatically will be close now if sell stop order open at 40169.00 so
Hi Teams Looking for trading strategy or an EA, which can trigger trade, in XAUUSD, With fixed SL of 2 USD AND TP OF 3 TO 5 USD. Any strategy any time frames. Can work on lowest size
Looking for a programmer to code EA for Buy Stop/Sell Stop HFT Trading designed for Ger40 EA must be able to trade on live account and Dll must be used for EA speed slippage control and spread filter
i want a forex robot that will read chats and enter trades on its oown. i want it to be able to use all trading strategies and partterns. good risky manegmemt, i want it to forcuse on Gold and and all major forex pairs. i want it to use stop loses and take profits as the market might change direction anytime. i want to work on both mt5 and mt4
I want to make something automatic which EMA will automatically trade in my account. For this I want to make a simple robot I want to get this made automatically on a simple EMA
Saya memerlukan Expert Advisor berdasarkan sinyal AOX. Itu harus memiliki pemeriksaan dan penanganan kesalahan operasi perdagangan. Kriteria utama pembukaan dan posisi penutupan: ■ arah rata-rata bergerak ■ harga lebih tinggi dari bar sebelumnya. Lot perdagangan adalah parameter masukan

Informations sur le projet

Budget
30 - 100 USD
TVA (21%): 6.3 - 21 USD
Total: 36.3 - 121 USD
Pour le développeur
27 - 90 USD
Délais
à 3 jour(s)