please help me to put buy and sell arrow on this code. - page 3

 
Karputov Vladimir:

 version   "1.04"
i dont get your message boss
 
younghadiz:
i dont get your message boss

 

Forum on trading, automated trading systems and testing trading strategies

please help me to put buy and sell arrow on this code.

Karputov Vladimir, 2015.11.09 13:36

Check the folder "Projects" in MetaEditor.

 

P.S. For optimization it is necessary to limit the number of bars to draw the arrows.

But it won't be today. 

Attach version   "1.04"  file.


In the message above, I have attached a version 1.04. A new version is available to you in MetaEditor Projects folder.

 

Good day sir, i have amended the code and is working well now but the only problem that  i encountered is that , once i get signal from,let say 5munite time frame and the new bar formed then once the 2nd new bar formed , the arrow will disapear . whish i understand that the arrow only indicate /print when condition is still active. and also i will like the arrow to show on the history .

attached file is below.

tanks for your support sir.

Files:
Test5.mq4  10 kb
 
younghadiz:

Good day sir, i have amended the code and is working well now but the only problem that  i encountered is that , once i get signal from,let say 5munite time frame and the new bar formed then once the 2nd new bar formed , the arrow will disapear . whish i understand that the arrow only indicate /print when condition is still active. and also i will like the arrow to show on the history .

attached file is below.

tanks for your support sir.

 

Forum on trading, automated trading systems and testing trading strategies

please help me to put buy and sell arrow on this code.

Karputov Vladimir, 2015.11.09 13:36

Check the folder "Projects" in MetaEditor.

 

P.S. For optimization it is necessary to limit the number of bars to draw the arrows.

But it won't be today. 

Attach version   "1.04"  file.


In the message above, I have attached a version 1.04. A new version is available to you in MetaEditor Projects folder.

 


it coulkd be that, but it don't give any satisfying signal :

#property indicator_chart_window
#property indicator_buffers 2
#property indicator_color1 YellowGreen//Olive  
#property indicator_color2 Yellow
#property indicator_width1  1
#property indicator_width2  1
//--- input parameter
extern  bool Alerts=TRUE;
extern bool EnableBB = true;
//--- input parameters of the script 
double arrow_up[];
double arrow_down[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init(0)
  {
   SetIndexBuffer(0, arrow_up);
   SetIndexStyle(0, DRAW_ARROW);
   SetIndexArrow(0, 233);  
   SetIndexEmptyValue(0, 0.0);
  
   SetIndexBuffer(1, arrow_down);
   SetIndexStyle(1, DRAW_ARROW);
   SetIndexArrow(1, 234);
   SetIndexEmptyValue(1, 0.0);

   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
  int start()  
    {
    int counted_bars=IndicatorCounted();
    if(counted_bars<0) return(-1);
    if(counted_bars>0) counted_bars--;
    int limit=Bars-counted_bars;

  for(int i=0;i< limit;i++)
     {
     int COUNT =0;
     for( int z = i+5; z >=i; z--)
        {
        if(Close[z] > Open[z]) COUNT++;  
        else COUNT--; 
        if( EnableBB==True)
           {
            if (COUNT == 4 && Close[z] < Open[z]) arrow_up[z] = Open[z];  
            if (COUNT == -4 && Close[z] > Open[z]) arrow_down[z] = Open[z]; 
            }
         }
     } 
//----
   return(0);
  }
//+------------------------------------------------------------------+ 
Files:
EURUSDH4_22.png  41 kb
 

i think that you will have to reverse arrow_up and arrow_down to get the right stuff.

 
Karputov Vladimir:

 


In the message above, I have attached a version 1.04. A new version is available to you in MetaEditor Projects folder.

Yes sir, but the arrow doesn't indicate / print base on my condition sir.
 
younghadiz:
Yes sir, but the arrow doesn't indicate / print base on my condition sir.

You're talking about version 1.04? Insert screenshot graphic, please. The graph should be date, period and the title character.

P.S. Sorri.  I attached the version 1.5

Files:
Test.mq4  11 kb
 
Karputov Vladimir:

You're talking about version 1.04? Insert screenshot graphic, please. The graph should be date, period and the title character.

P.S. Sorri.  I attached the version 1.5

working perfect now sir.may almighty God bless you abundantly sir.

have worked on the alert also and is doing well.

wanna work on how to secure mql4 now. is there tutorial for it sir? 

 
younghadiz:

working perfect now sir.may almighty God bless you abundantly sir.

have worked on the alert also and is doing well.

wanna work on how to secure mql4 now. is there tutorial for it sir? 

Excuse me. Did not understand.