Fixing a problem with error code #130

Specification

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.


Responded

1
Developer 1
Rating
(586)
Projects
918
46%
Arbitration
31
39% / 29%
Overdue
93
10%
Free
2
Developer 2
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
3
Developer 3
Rating
(236)
Projects
440
26%
Arbitration
125
21% / 57%
Overdue
96
22%
Working
4
Developer 4
Rating
(355)
Projects
589
70%
Arbitration
14
43% / 7%
Overdue
28
5%
Free
5
Developer 5
Rating
(169)
Projects
218
50%
Arbitration
6
17% / 67%
Overdue
11
5%
Free
6
Developer 6
Rating
(6)
Projects
7
57%
Arbitration
1
0% / 100%
Overdue
2
29%
Free
7
Developer 7
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
8
Developer 8
Rating
(121)
Projects
134
66%
Arbitration
36
25% / 56%
Overdue
22
16%
Free
9
Developer 9
Rating
(3)
Projects
8
13%
Arbitration
10
10% / 70%
Overdue
2
25%
Free
Similar orders
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
I need someone the create a supertrend indicator based on Heikin Ashi candles instead of normal candles. Needs to be exactly the same as the supertrend (original one) + ha from tradingview. In m1,m5,m15 the indicator must have the same values ​​found with the tradingview. Work that meets this requirement will be accepted
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Hello, I need someone who have a great experience in ATAS platforms, I use ATAS software for orderflow and i would like tradingview to draw some light information from ATAS to tradingview. If you are capable of this please send me a message and let's proceed
Hi, I have a Live Data feature for my trading accounts that lets me check details like total open positions, number of lots, profits, etc. I need someone to add the number of pending orders to this live data. This is important for me to ensure that all accounts have the same number of pending orders, since I use a copy trading system. Also, there is a website where I check all the data. In this case, you would need
Hello, i am searching for an experienced, professional software engineer, who can convert three Indicators from MQL4 to MQL5. This may sound like an easy job, but one indicator is like a trading system and therefore a bit complex. So you need to have a very good understanding of both languages. You should also be able to code MQL5 classes ( https://www.mql5.com/en/docs/basis/oop ). The intention is to code MQL5
I was looking around for a robot to trade with and came across one that looked like it had some promising results, i would like to optimize the existing robot for even better and more consistent results and convert the mql4 code to mql5 so that i can run it on my live account after testing. I would like the expert to be run on the 5 minute time frame. Note: The robot is based on the martingale system. I have provided
### Summary of EA Requirements 1. **Time Period**: - The EA should operate on the H4 timeframe. 2. **RelicusRoad MACD v2 Indicator**: - **Parameters**: - Fast EMA Period: 12 - Fast EMA Type: Close price - Slow EMA Period: 24 - Slow EMA Type: Close price - Signal SMA Period: 9 - The EA should use this indicator to determine the crossover condition between the MACD line and the signal line. 3
I need a robot for forex trading~~The way the robot should work is that when I put it into a 5 minute chart, the chart will show 15 minutes, one hour, Regardless of whether they are buying or selling, they must buy or sell in the same color at the same time~~~ Use the following indicators: HalfTrend 1 & alerts mtf Trafficlight indicator.MQ4 When placed into a 5 minute chart ~ the chart will show 15 minutes, one
I am looking for a programmer to do EA trader. If you can understand what I want from the video i do and you can do it, contact me because you will be able to do what I want. https://drive.google.com/file/d/1wbHxbUQQqCkdpr0-pHfIh2b288LzYTV2/view?usp=sharing maximum budget = 150$ Preference is given to someone who: -speaks Arabic so I can explain it clearly to him - And the lowest price

Project information

Budget
30 - 100 USD
VAT (21%): 6.3 - 21 USD
Total: 36.3 - 121 USD
For the developer
27 - 90 USD
Deadline
to 3 day(s)