A Trialing Pending Order

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 10 horas
Comentario del Cliente
Very difficult to work with...make sure you give a very detailed specification to this developer. if not he will find opportunity to make more money from you and
Comentario del Ejecutor
Tosin Oyinleye is difficult to work with. changed requirements. Refused finishing job and asked for extra work.I would be willing to do extra work for free, but I really did not see his any sincerity.

Tarea técnica

I have created a trailing pending order component of an EA but keep given this error message;


The code is an follows;


============================================================================================================================================================================

 double findHigh(){  

   double highestHigh = 0;

   for(int i = 0; i < barsray; i++){

       double high = iHigh(Stonk,Timeframe,i);

       if(i > BarsN && iHighest(Stonk,Timeframe,MODE_HIGH,BarsN*2+1,i-5) == i){if(high > highestHigh){return high;}}

          highestHigh = MathMax(high,highestHigh);}return -1;}

            

 double findLow(){  

  double lowestLow = DBL_MAX;

   for(int i = 0; i < barsray; i++){

       double low = iLow(Stonk,Timeframe,i);

       if(i > BarsN && iLowest(Stonk,Timeframe,MODE_LOW,BarsN*2+1,i-5) == i){if(low < lowestLow){return low;}}

          lowestLow = MathMin(low,lowestLow);} return -1;}



 void order_mody()

   {for(int i = OrdersTotal()-1; i >=0; i--){ ulong orderTkt = OrderGetTicket(i);

      if(OrderSelect(orderTkt) && OrderGetString(ORDER_SYMBOL) == Stonk){ENUM_ORDER_TYPE orderType = (ENUM_ORDER_TYPE)OrderGetInteger(ORDER_TYPE); 

      double orderPricy = OrderGetDouble(ORDER_PRICE_OPEN); int digts = (int)SymbolInfoInteger(Stonk,SYMBOL_DIGITS); double pnts = SymbolInfoDouble(Stonk,SYMBOL_POINT);

     

         if(orderType == ORDER_TYPE_BUY_STOP){ double pricy = findHigh(); pricy =NormalizeDouble(pricy,digts); 

        double ordtp = (findHigh() + (findHigh()*TpPoints)); ordtp = NormalizeDouble(ordtp,digts);

         double ordsl = (findHigh() - (findHigh()*SlPoints));  ordsl = NormalizeDouble(ordsl,digts);   

         datetime expiration = iTime(Stonk,Timeframe,0) + ExpirationHours * PeriodSeconds(PERIOD_H1); 

         if(pricy>orderPricy) {if(trade.OrderModify(orderTkt,pricy,ordsl,ordtp,ORDER_TIME_SPECIFIED,expiration,0))

         {Print(__FUNCTION__, ">Order #", orderTkt,"modified by trailing");}}}

         

         else if(orderType == ORDER_TYPE_SELL_STOP){double pricy = findLow(); pricy =NormalizeDouble(pricy,digts); 

         double ordtp =(findLow()-(findLow() *TpPoints)); ordtp = NormalizeDouble(ordtp,digts);

         double ordsl =(findLow()+(findLow()*SlPoints));  ordsl = NormalizeDouble(ordsl,digts);

         datetime expiration = iTime(Stonk,Timeframe,0) + ExpirationHours * PeriodSeconds(PERIOD_H1);    

         if(pricy<orderPricy) {if(trade.OrderModify(orderTkt,pricy,ordsl,ordtp,ORDER_TIME_SPECIFIED,expiration,0))

         {Print(__FUNCTION__, ">Order #", orderTkt,"modified by trailing");}}}

                      

   }}}    

============================================================================================================================================================================

I need a code that will enable a pending order to trail a the highest of high/lowest of low within a dynamic set of candles of array of candles.

Han respondido

1
Desarrollador 1
Evaluación
(103)
Proyectos
119
32%
Arbitraje
4
0% / 50%
Caducado
2
2%
Libre
2
Desarrollador 2
Evaluación
(41)
Proyectos
54
4%
Arbitraje
5
0% / 60%
Caducado
4
7%
Libre
3
Desarrollador 3
Evaluación
(35)
Proyectos
50
42%
Arbitraje
3
33% / 33%
Caducado
4
8%
Libre
4
Desarrollador 4
Evaluación
(31)
Proyectos
41
20%
Arbitraje
9
11% / 89%
Caducado
5
12%
Libre
Solicitudes similares
I would like to find someone who has already created a trading robot before. Im also looking for someone who can creat a bot that goes with time and structure
I am urgently in need of an expert full time programmer who can code an ea from scratch, Programming a well automated expert advisor from the existing strategy and make it work exactly more details will be provided in chat room thanks
Hello, I have implemented the method how to read the Toolbox Journal in MQL4, but this method does not work in MT5, because in MT5 the listview has LVS_OWNERDATA style. If you know or have a solution for MT5, without reading it from the log file, then please apply to this job. Regards, TradingProFX
I would need a robot that will automatically enter buy and sell positions based on the renko chart. The trend is to be determined on the basis of Elliot Waves. Individual peaks and troughs are determined by the TMA centerband Indicator. The buy position is entered when a higher low appears via the buy signal of the TMA indicator A sell position is entered when a lower high appears via the sell signal of the TMA
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 EA(not included in my tradingview code): recalculate after order is filled, order size: xx% of equity
The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is
Modify My EA 30+ USD
good day coder i want to add additional indicator to my ea The Coder should be able to code indicator to EA i will only send you source code if you can proof the indicator can be coded into ea all other features will be discussed inside but the major part is this peculiar indicator i am available for discussion My time zone is GMT+1 Source code will be release and tested on live market i trade from monday to sunday
Hello , By slippage control on Take profit and stoploss functions the ea won't implement different results of TP and Stoploss on volatile markets, target is to produce exact numbers of sl and tp on live executions .A coder who has done this type of job will be the choice . lot sizing will be added to EA
Use indicator provided to produce support and resistance levels, and enter trade if price reaches s/r level which user has specified in settings. TP and SL should also come from user settings. TP and SL options should be s/r levels. EA trade should only be opened if there is a trade already open from another EA, based on magic number. EA should check for magic number from other EA, and only enter trade if there is a
1. Idea uruchomienia jest następująca : wejście na rynek ma miejsce, gdy główna linia MACD przecina się z linią sygnałową zgodnie z aktualnym uruchamianiem trendu . 2. Trend jest ustalany na podstawie średniej kroczącej wykładniczej z określonym okresem (InpMATrendPeriod). Jeśli bieżąca wartość EMA jest większa od sieci, trend jest postrzegany jako rosnący (ema_current > ema_previous). Alternatywnie, jeśli

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
de 1 a 2 día(s)