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

Indicadores

Trabajo finalizado

Plazo de ejecución 7 horas
Comentario del Ejecutor
Nice to deal with you!
Comentario del Cliente
Competitive quote, quick work. I am happy.

Tarea técnica

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! 

 

Han respondido

1
Desarrollador 1
Evaluación
(559)
Proyectos
838
73%
Arbitraje
15
53% / 13%
Caducado
193
23%
Trabaja
Solicitudes similares
Hello, I wanted to modify a Zig Zag indicator and make it better. The zig zag indicator is basically running on percentage reverse rather than pipe amount. For example: a signal appears when the market has reached a certain percentage. This is creating many false signals especially when its slow or fast movement. It also misses a lot of highs and lows. I believe the solution is to remove the percentage function
I have following requirments. First of all need both files, .exe and .mql5 files once coded. H/L means High/Low. Chart should be drawn for infinite no of past bars. 1. It should draw H/L of current day , current week, last week, last month and last day with appropriate descriptions at the end of line. Style and color of every line should be different for ease of understanding. 2. Should draw closing price of every
Project Name: Automatic Trend Channel and Bounce Detection Indicator Platform: TradingView (Pine Script v6) or lastest version Project Description: I want an indicator that automatically detects trend channels and bounce signals without manual drawing. It must: Identify swing highs and swing lows using pivot logic (for example, 5 candles left and 5 candles right), Draw a dynamic channel based on these swing points
Dashboard panel for indicator + Fiboanacci + Bullish candle + Bearish candle + Candle highier high + Candle highier low + Candle Lower high + Candle Lower low + Strong signal candle + PO3 + Session + examples
Hello Developer,please I would like to update my indicators to start showing up on my mt4 chart,as is not currently showing up. I only want to update the indicators,it doesn't require unlocking. Thanks Innocent ✍️ Contact me(inbox me) if you can do the work
📜 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

Información sobre el proyecto

Presupuesto
10 - 20 USD
IVA (21%): 2.1 - 4.2 USD
Total: 12.1 - 24.2 USD
Para el ejecutor
9 - 18 USD
Plazo límite de ejecución
de 1 a 2 día(s)