Code fragment: # of bars since the turning point of a buffer

Indicators

Job finished

Execution time 7 hours
Feedback from employee
Nice to deal with you!
Feedback from customer
Competitive quote, quick work. I am happy.

Specification

I need a fragment of mql4 code that I can insert into a loop:

int start()


  {

   int limit;

   int counted_bars=IndicatorCounted();

   if(counted_bars<0) return(-1);

   if(counted_bars>0) counted_bars--;

   limit=Bars-counted_bars;



   for(int i=0; i<limit; i++)

   {  

   ExtMapBuffer0[i]=something;

   }



   for(i=0; i<limit; i++)

   {    

   TurningPointBuffer[i]=...;

   }

   return(0);

  }

//+------------------------------------------------------------------+

 

Where the TurningPointBuffer[i] contains the number of bars since ExtMapBuffer0[i] changed direction (changed sign of slope).

Doesn't seem too difficult? Then bid and let's quickly finish this! 

 

Responded

1
Developer 1
Rating
(559)
Projects
838
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Working
Similar orders
📜 HostGhost EA Final Job Invite – For MQL5.com 📋 Project Title: Finalize & Polish HostGhost Dynamic Trader EA (80% Completed) 🌟 Project Description: Hello Developers, I am seeking an experienced and detail-oriented MQL5 programmer to finalize and polish a nearly completed EA called HostGhost . 80% of the EA's architecture is already built — structured, modular, well-commented, and elegantly laid out. Your role
i need to convert a TradingView (PineScript) indicator to MQL4 name of the indicator is "Donchian Trend Ribbon" the source code will be below. visuals are important. so make sure the developed indicator will have the visuals all ordinal input should be represented. General conditions write clear and well commented code. delivery should be within 2 days. deliveries are the indicator ex4 and the developed source code
Hi guys My grid EA has some bugs and I would like to figure out, what lead into my losses. I made a document with all the bugs I have found. It must be something with Global Variables and mathematical levels it ignores. The logic behind is very complex and the EA has approx. 4500 lines of code. Requirements: - Math understanding - Understands mql5 and clean coding What does the EA: - It continuously monitors the
Money king Fx 30 - 12000 USD
I want to creat this robot to help me to makes me to be professional trade in this world, it's will be opening order itself and close them and it will be a profitable robot
I have a pine script from tradeview and I'd like you to convert it in js ECMAScript (ES6) so as to use in the trendspider, Please find a link to check which one is it. https://charts.trendspider.com/scripting/docs/#/scripting_language if you are an expert and you can do this work bid
All entry/exit conditions, signal filtering, EMA, ADX, and ATR calculations, as well as confirmation candles, must be implemented without any changes . Signals must appear exactly the same as they do in TradingView: On the same candles , in the same direction . Optimized for detecting spikes/drops in Boom and Crash indices on the M1 timeframe . User-friendly interface: Ability to configure the following parameters
Вот краткое описание задания. Полный документ с техническим заданием (TZ) прилагается во вложении: Советник (EA) уже реализован на платформе MetaTrader 4 и работает на основе дивергенций RSI / MACD с 8 вариантами открытия позиций (1-4 и 1A-4A). Необходимо: Интегрировать внешнюю bridge-версию индикатора “All-in-One Candlestick Pattern Scanner” (Bridge версия) через функцию iCustom() для получения информации о свечных
ASAP assist if you know what to do Multi-Timeframe High/Low Lines Timeframes : Weekly (W1), Daily (D1), 12H (H12) Logic : Draw lines from previous completed candle’s high and low Labels: W1 High @ price , D1 Low @ price , etc. Colors: W1 = Blue D1 = Green H12 = Orange Line Style: customizable via inputs Lines stretch to the right side of the chart Visible on all timeframes (15M, H1, H4, etc.) 2. Stochastic Oscillator
Buna tuturor developerilor romani de pe aici, Am un indicator care functioneaza destul de bine insa cum intotdeauna este loc de mai bine as avea nevoie de niste update uri pentru el. In principiu as vrea sa fie adaugat 2 indicatori noi in logica existenta, primul este CCI al doilea este Accelerator Oscillator. Primul ar trebui sa functioneze in TF current, iar al doilea in TF curent + un TF mai mare. Mai multe
I’m looking for a custom indicator that can scan for ICT Smart Money "Breaker Structures" and alert me when they form. What I Need: The indicator should analyze markets (Oil/Gold/ but mostly Crypto (BTC)) for Breaker Structures—where price breaks a swing high/low but gets rejected, signaling a potential reversal. I primarily use TradingView, so I'd appreciate it if the script is compatible with TradingView and can

Project information

Budget
10 - 20 USD
VAT (21%): 2.1 - 4.2 USD
Total: 12.1 - 24.2 USD
For the developer
9 - 18 USD
Deadline
from 1 to 2 day(s)