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
(547)
Projects
824
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Working
Similar orders
I have a strategy that is based on an indicator that I have in trading view, and I want to automate this strategy for mt4 or mt5. Pls reach out to me of you have the right profession for converting tradingview strategy to metatrader thanks
Hello there, I would like help with creating a Tradovate Indicator/Script to help ease my trade. Tradovate is based on JavaScript so knowing it is a must. I would like to create a click to trade script. Basically using my keyboard and a click of the mouse (left click). Example, when I hold SHIFT (or whatever keyboard key the user desires) and move the mouse, a line would show indicating a buy order. Wherever the
Building two different simple indicators The first indicator - works on the one-minute time frame - only Firstly Indicator (1) Data \\ Draw a red line at the top (HIGH) of the zero candle _ M1 \\ Draw a blue line at the bottom (LOW) of the zero candle _ M1 \\ Draw a red line at the top (HIGH) of the zero _ M2 candle \\ Draw a blue line at the bottom (LOW) of the zero candle _ M2 \\ Draw a red line at the top (HIGH)
Need to add code that will open and close transactions in the strategy tester. one buy and one sell trade on each new bar of the selected timeframe. with fixed stop loss and take profit of 100 and 100. on any trading instrument. The EA must pass a test from the market to load the product. no errors. Please provide the code separately, I will enter it into the bot myself. After successfully uploading the product to
PLEASE NOT THAT MY BUDGET IS 60usd FOR BOTH MT4 AND MT4 PLATFORMS The EA should have 1. An option that I can change it parameters, that's the period, method and application 2. The EA should sell when on every bullish candle that closes under the MA 3. The EA should buy on every bearish candle that forms Above the EA. It's should close trades on reverse cross. I mean when it's in a buy trade and crosses the MA for a
I will like the indicator to send notification to mobile when the indicator changes color and is increase upward when positive and decreasing downwards when negative including fisplaying arrows on the chart ,red for negative and green for positive
Hello I want to buy a strategy and put it in an indicator I have This strategy must be strong, with a profit rate of +90% without repeating or deleting the signal The signal should be 1 minute to 5 minutes maximum I do not have a specific strategy or ideas. You show me your strategies and I am ready to test it send ex4 to test it and videos or images too
Hello guys! I have my own existing EA with mq5 files and like to add on extra functions and features. This is a grid hedging martingale EA. I hope I can get a developer who can do this. 1. Allow input for different magic number for BUY and SELL (Currently, it is using same magic number for both BUY and SELL) Eg: Magic number for BUY = 1, Magic number for SELL = 2 and the same calculation method will apply to the
hi.. i have a pin script (TV) but some lines in the code needs to be fixed,,, i will attach the file thanks very much in advance, Also there will be more project in front, so I need a very dedicated developer
Bom dia, O filtro de notícias do meu EA deixou de funcionar. Algum especialista para trabalhar no filtro de notícias? A ideia é apenas eliminar ordens pendentes ou abertas alguns minutos antes da divulgação de notícias e voltar a abrir alguns minutos depois da divulgação das notícias. Obrigado e cumprimentos, Nelson Dias

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)