Техническое задание

------------------------------------------------------------------+
//|                                                      Candles.mq4 |
//|                               Copyright 2020, Professoft Limited |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property strict
#property indicator_chart_window
#property indicator_buffers 2

input bool ShowEngulfingCandle = true;

#property indicator_type1 DRAW_ARROW
#property indicator_width1 1
#property indicator_color1 0xFFAA00
#property indicator_label1 "Buy"

#property indicator_type2 DRAW_ARROW
#property indicator_width2 1
#property indicator_color2 0x0000FF
#property indicator_label2 "Sell"

//--- indicator buffers
double         SBuffer[];
double         BBuffer[];

#define BuyArrows 0
#define SellArrows 1


//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
  IndicatorBuffers(2);
  SetIndexBuffer(BuyArrows,BBuffer);
   SetIndexEmptyValue(BuyArrows, EMPTY_VALUE);
   SetIndexArrow(BuyArrows, 233);
   SetIndexLabel(BuyArrows, "Buy");   
   PlotIndexSetInteger(BuyArrows,PLOT_ARROW,159);
   

   SetIndexBuffer(SellArrows,SBuffer);
   SetIndexEmptyValue(SellArrows, EMPTY_VALUE);
   SetIndexArrow(SellArrows, 234);
   SetIndexLabel(SellArrows, "Sell");
   PlotIndexSetInteger(SellArrows,PLOT_ARROW,159);
   
   
  
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
//---
    int barIndex,                           // Bar index
       Counted_bars;                // Number of counted bars
//--------------------------------------------------------------------
   
   int limit = rates_total - prev_calculated;
   if (prev_calculated > 0) limit++;
   
   for (int i = limit-1; i>=0; i--) {
       bool isBearish = Open[i] > Close[i];
       bool previousIsBearish = Open[i + 1] > Close[i + 1]; // PROBLEM IS HERE
                   
      if (isBearish && !previousIsBearish) {
          // sell buffer
          SBuffer[i]=High[i] + (10 * Point); 
      } else if (!isBearish && previousIsBearish) {
         // buy buffer
         BBuffer[i]=Low[i] - (10 * Point);  
      }
   }
   
//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+-----------------------------------------

Файлы:

EX5
Candles.ex5
8.4 Kb
MQ4
Candles.mq4
3.2 Kb

Откликнулись

1
Разработчик 1
Оценка
(5)
Проекты
13
77%
Арбитраж
0
Просрочено
0
Свободен
Похожие заказы
I am looking for a top-tier MQL5 engineer to architect a sophisticated, 5-engine trading system with integrated 'Guardian' recovery logic and real-time equity protection. PLEASE MAKE SURE YOU READ MY DISCRIPTION AND THE UPLOADED CODE BEFOR SPEAKING TO ME. To trade - XAUUSD+ Broker - vantage.com raw account starting balance - £1000 I require a high-level MQL5 developer to build/refine a sophisticated Expert Advisor. I
I want to create a loss recovery account.I have a zone recovery EA.It sometimes gives more buy sell entries than the target. This causes a lot of loss. I want to create an EA to reduce that loss by 40% to 50%. Example: My EA has lost $2200 with a buy sell entry. Now the new EA will give an entry that can reduce the loss from $2200 to $700
I need any highly profitable MT5 robot which trades any sythetic indices on deriv very profitably. It should have good risk management and any good strategy The EA should have good risk management and can trade small accounts like 50 - 100USD Developers who have already made robots have higher chance
Mk 30+ USD
I need a fully automated trading robot designed to generate consistent profits while strictly controlling risk and minimizing losses. The robot should use a combination of strategies, including trend-following, scalping, and price action, and must be able to adapt to different market conditions such as trending and ranging markets. It should analyze the market using indicators like Moving Averages, RSI, MACD, and
Seeking developer service to code an EA. Interested developer must have good experience and understanding on how ORB and FVG works, and agreed to the terms below : 1. Shall demonstrate a fully functional EA that operates as specified in the requirement and function automatically as requested in real-time environment (forward test - demo/live), regardless of good results obtained in strategy-tester. Backtesting
Need trading robot 50 - 70 USD
I need a robot for trading gold and currencies . I need to use it with metatrader 4 and 5 . My budget is not high . Max . 70 USD. I need to be able to start and stop it at any time without restrictions
am looking for an experienced MQL5 developer to build a high-frequency trading Expert Advisor (EA) for XAUUSD (Gold) on M1 and M5 timeframes . The EA must include advanced execution logic, dynamic pending orders, risk management, and news/session filters. Clean, efficient, and well-documented code is required. Strategy type: Scalping (fast trades, quick profit). Very fast execution logic (optimized for speed). Goal
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

Информация о проекте

Бюджет
30 - 60 USD
Сроки выполнения
от 1 до 60 дн.