Consecutive Candle Indicator - page 2

 

Great work I liked it !!!!... I was wondering can you create dashboard tool in which it can scan the list of 28  pairs regarding the same feature as in indicator functions...?

your help in this prosepect would be really appreciated.

Mladen Rakic:

TriniTrader

Here is a version that allows any number of consecutive bars : 3-in-a-row-trend_ride_mtf_alerts nmc 1.02.mq4

 

Hello

I'm attempting to write code that identifies two consecutive down candles. Here is my code. Kindly assist,


void OnTick ()

{
   double LowestPrice;
   double LowestCandle;
   
   int FirstDownClose=1;

      while(true)
 
         {
            if(Open[FirstDownClose]>Close[FirstDownClose])
             
               break;
             
                  FirstDownClose++;
           
           
            
   int SecondDownCandle = (FirstDownClose)+1;
   
        // Comment((string)SecondDownCandle + "     " + Close[SecondDownCandle]);
     
                 if(!(Open[SecondDownCandle]>Close[SecondDownCandle]))
   
                          {    
                           FirstDownClose=SecondDownCandle;
                           
                           Alert ("No second candle");
                           
                           return;
                            }
           
                  if(Open[SecondDownCandle]>Close[SecondDownCandle])
   
                          {  
                           LowestCandle = iLowest(Symbol(),PERIOD_M5,MODE_LOW,SecondDownCandle,0);
                           LowestPrice = iLow(Symbol(),PERIOD_M5,LowestCandle);
                           
                              {
                                Comment((string)LowestCandle +"    " + LowestPrice);
                              }
                          }
        }
      
}
 
GDS GDS:

Hello

I'm attempting to write code that identifies two consecutive down candles. Here is my code. Kindly assist,


Do not double post!!

I have deleted the other topic.

 

I can't use the indicator 3-in-a-row-trend_ride_mtf_alerts_nmc_1.02 on the Automater indicator to turn it into an EA can someone provide an improved version of the code for the automator indicator read buffers from this indicator?

<ex4 file deleted>
 
David William Kinia Simo Ngueoung #: indicator to turn it into an EA

Don't try to do that. There are no buffers, no IndicatorCounted() or prev_calculated. No way to know if older bars have changed or been added (history update.)

Just get the value(s) of the indicator(s) into EA/indicator (using iCustom) and do what you want with it.
          (MT4) Detailed explanation of iCustom - MQL4 programming forum (2017)

You have only four choices:

  1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

  2. Try asking at:

  3. MT4: Learn to code it.
    MT5: Begin learning to code it.

    If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

  4. Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum (2019)

We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
          No free help (2017)

Reason: