need help adding arrow to the price channel indicator (not mine )

[Deleted]  

I try and try, but I can't do. I know is the logic. please help. Thanks for the help.

 

 

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

//|                                                    i-HighLow.mq4 |

//|                                          Copyright © 2007, RickD |   

//|                                       ?????????? ???????? ?????? |

//|                                            http://www.e2e-fx.net |

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

#property copyright "© 2007 RickD"

#property link      "www.e2e-fx.net"

//----

#define major 1

#define minor 0

//----

#property indicator_chart_window

#property indicator_buffers 6

#property indicator_color1  Red
#property indicator_width1  2

#property indicator_color2  Green
#property indicator_width2  2

#property indicator_color3  Black

#property indicator_width3  1
#property indicator_color4  Black
#property indicator_width4  1
#property indicator_color5  Black
#property indicator_color6  Red
//----

extern int N =2600 ;

extern int N2 = 5;
extern int NN =175 ;

extern int NN2 = 6;
extern int    arrowSize       = 2;
//----

double UpperBuf[];

double LowerBuf[];

double UpperBuf2[];

double LowerBuf2[];
double arrowUp[];
double arrowDn[];

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

//|                                                                  |

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

void init()

  {      
SetIndexBuffer(5,arrowUp); SetIndexStyle(5,DRAW_ARROW,0,arrowSize); SetIndexArrow(5,233);
   SetIndexBuffer(6,arrowDn); SetIndexStyle(6,DRAW_ARROW,0,arrowSize); SetIndexArrow(6,234);
  
   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 3);

   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 3);
  
SetIndexStyle(2, DRAW_LINE, STYLE_SOLID, 2);

   SetIndexStyle(3, DRAW_LINE, STYLE_SOLID, 2);
//----  

   SetIndexDrawBegin(0, N);

   SetIndexDrawBegin(1, N);
  
 SetIndexDrawBegin(2, NN);

   SetIndexDrawBegin(3, NN);
//----

   SetIndexBuffer(0, UpperBuf);

   SetIndexBuffer(1, LowerBuf);
  
  SetIndexBuffer(2, UpperBuf2);

   SetIndexBuffer(3, LowerBuf2);
  }

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

//|                                                                  |

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

void deinit()

  {

//----

  } 

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

//|                                                                  |

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

void start()

  {

   int counted = IndicatorCounted();

//----

   if(counted < 0)

       return (-1);

//---- 

   if(counted > 0)

       counted--;

   int limit = Bars - counted;

//---- 

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

     {

       UpperBuf[i] = iHigh(NULL, 0, iHighest(NULL, 0, MODE_HIGH, N,

                           i)) + N2*Point;

       LowerBuf[i] = iLow(NULL, 0, iLowest(NULL, 0, MODE_LOW, N, i)) -

                          N2*Point;
       UpperBuf2[i] = iHigh(NULL, 0, iHighest(NULL, 0, MODE_HIGH, NN,

                           i)) + NN2*Point;

       LowerBuf2[i] = iLow(NULL, 0, iLowest(NULL, 0, MODE_LOW, NN, i)) -

                          NN2*Point;
  
   if (UpperBuf2[i]>UpperBuf[i] = true
  
   arrowDn[];
  
if (LowerBuf2[i]<LowerBuf[i] = true  arrowUp[];
  
     }

  }

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

[Deleted]  

I modified it. good for 1m chart . rule are sell when 175 price is crosses 2600 (up) and buy when 175 is crosses (Down). please go ahead and make it into an ea. if you want, but please post to every one to see.

Simon Gniadkowski
17412
cway:

I try and try, but I can't do. I know is the logic. please help. Thanks for the help.

 

<CODE DELETED>

Please read some other posts before posting . . .

Please   edit   your post . . .    please use the   SRC   button to post code: How to use the   SRC   button. 

Simon Gniadkowski
17412
cway:

I modified it. good for 1m chart . rule are sell when 175 price is crosses 2600 (up) and buy when 175 is crosses (Down). please go ahead and make it into an ea. if you want, but please post to every one to see.

 

Its good of you to give permission for other people to use this Indicator in an EA . . . .  but hold on,  it isn't yours to allow people to use.

If you want everyone else to do the work for you then go here and they will do just that:  Please code this MT4 EA for me