A Trialing Pending Order

MQL5 エキスパート

仕事が完了した

実行時間10 時間
依頼者からのフィードバック
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
開発者からのフィードバック
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.

指定

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.

応答済み

1
開発者 1
評価
(103)
プロジェクト
119
32%
仲裁
4
0% / 50%
期限切れ
2
2%
2
開発者 2
評価
(41)
プロジェクト
54
4%
仲裁
5
0% / 60%
期限切れ
4
7%
3
開発者 3
評価
(35)
プロジェクト
50
42%
仲裁
3
33% / 33%
期限切れ
4
8%
4
開発者 4
評価
(31)
プロジェクト
41
20%
仲裁
9
11% / 89%
期限切れ
5
12%
類似した注文
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

プロジェクト情報

予算
30+ USD
開発者用
27 USD
締め切り
最低 1 最高 2 日