Discussion of article "Indicator for Renko charting" - page 2

 
Hi, how can i make the indicator generate a buy/sell signal "x" bricks after "color change" to generate a expert?
Thank you so much to share this indicator Mr Dmitriy.
 
Wiesehofer:
Hi, how can i make the indicator generate a buy/sell signal "x" bricks after "color change" to generate a expert?
Thank you so much to share this indicator Mr Dmitriy.
Hi. You can use the color buffer "double RENKO_color[]".
Do not forget, the buffer have parameter - ArraySetAsSeries.
 
Dear Dmitry

Thank you for your Great indicator, we really need it on MT5
I wanted to do the same as Wiesehofer, but still don't have no DATA Window for iCustom
I also tried for hours and added a new buffer (BoxesBuffer) and copied RENKO_color[] without any result

Thank you for your time and help

   if(func_new_bar(time_redraw)==true)
     {
      func_concolidation();

      for(int i=1;i<50;i++)
        {
            BoxesBuffer[i] = RENKO_color[i];
            //Print(RENKO_color[i]);
        }      
     }




 
Oups :( Just realized that the indicator repaint :(
 
efmus_fx:
Dear Dmitry

Thank you for your Great indicator, we really need it on MT5
I wanted to do the same as Wiesehofer, but still don't have no DATA Window for iCustom
I also tried for hours and added a new buffer (BoxesBuffer) and copied RENKO_color[] without any result

Thank you for your time and help

  

Maybe You use this code:

//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const int begin,
                const double &price[])
  {
//---
   if(func_new_bar(time_redraw)==true)
     {
      func_concolidation();
//--- Signal
      int color_1=int(RENKO_color[1]);
      int color_2=int(RENKO_color[2]);
      
      if(color_1!=color_2)
      {
      static int col_1;
      static int col_2;

      if(col_1!=color_1 || col_2!=color_2)
      {
      col_1=color_1;
      col_2=color_2;
      Alert("COLOR_CHANGE");
      }
      }
//--- Signal
     }
//--- return value of prev_calculated for next call
   return(rates_total);
  }

This code send the signal (Alert), every time, when color is changes.
I had small time for work on this code, I hope there are no errors.

Thank You...

 
Dmitriy Zabudskiy:
Hello!
May be the "step" is big?;
type_step - point (good);
magic_numb - (any thing);
levels_number - (any thing);
levels_color - (any thing);
time_frame - 1H;
time_redraw - 1M;
first_date_start - 01.01.2015 (06/2015 - it is small) ;
type_price - (any thing);
shadow_print - (any thing);
filter_number - 0 or 2 (it is normal);
zig_zag - (any thing);
zig_zag_shadow - (any thing);
zig_zag_width - (any thing);
zig_zag_color_up - (any thing);
zig_zag_color_down - (any thing);
square_draw - (any thing);
square_color_up - (any thing);
square_color_down - (any thing);
square_fill - (any thing);
square_width - (any thing);
frame_draw - (any thing);
frame_width - (any thing);
frame_color_up - (any thing);
frame_color_down - (any thing).
The important parameters is: step, type_step, time_frame, time_redraw, first_date_start, filter_number. Try to work with these settings.
 
anybody give me the renko or renge bar indicator for free....my gmail id ahmedsamiur@gmail.com
 
efmus_fx #:
Oups :( Just realized that the indicator repaint :(
you´re right.. the shaddows sometimes repaint, and the last 2 bricks sometimes repaint.
Reason: